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 4057db1 commit 4331e0dCopy full SHA for 4331e0d
src/main.rs
@@ -42,9 +42,8 @@ global_asm!(include_str!("video_mode/vga_320x200.s"));
42
global_asm!(include_str!("video_mode/vga_text_80x25.s"));
43
44
unsafe fn context_switch(boot_info: VirtAddr, entry_point: VirtAddr, stack_pointer: VirtAddr) -> ! {
45
- asm!("movq {1}, %rsp; callq *{0}; 0: jmp 0b",
46
- in(reg) entry_point.as_u64(), in(reg) stack_pointer.as_u64(), in("rdi") boot_info.as_u64(),
47
- options(att_syntax));
+ asm!("mov rsp, {1}; call {0}; 2: jmp 2b",
+ in(reg) entry_point.as_u64(), in(reg) stack_pointer.as_u64(), in("rdi") boot_info.as_u64());
48
::core::hint::unreachable_unchecked()
49
}
50
0 commit comments