Skip to content

Commit 4331e0d

Browse files
committed
Use intel syntax again
1 parent 4057db1 commit 4331e0d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ global_asm!(include_str!("video_mode/vga_320x200.s"));
4242
global_asm!(include_str!("video_mode/vga_text_80x25.s"));
4343

4444
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));
45+
asm!("mov rsp, {1}; call {0}; 2: jmp 2b",
46+
in(reg) entry_point.as_u64(), in(reg) stack_pointer.as_u64(), in("rdi") boot_info.as_u64());
4847
::core::hint::unreachable_unchecked()
4948
}
5049

0 commit comments

Comments
 (0)