We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c07368 commit e66dc16Copy full SHA for e66dc16
src/arch/x86_64/start.rs
@@ -26,8 +26,7 @@ pub unsafe extern "C" fn pre_main() -> ! {
26
pub unsafe extern "C" fn _start() -> ! {
27
asm!(
28
// initialize stack pointer
29
- "mov rsp, {stack}",
30
- "add rsp, {size}",
+ "lea rsp, [{stack}+{size}]",
31
"call {pre_main}",
32
stack = sym BOOT_STACK,
33
size = const STACK_SIZE - 16,
0 commit comments