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 2eefe09 commit 644809eCopy full SHA for 644809e
src/main.rs
@@ -37,7 +37,8 @@ global_asm!(include_str!("video_mode/vga_320x200.s"));
37
global_asm!(include_str!("video_mode/vga_text_80x25.s"));
38
39
unsafe fn context_switch(boot_info: VirtAddr, entry_point: VirtAddr, stack_pointer: VirtAddr) -> ! {
40
- asm!("jmp $1; context_switch_spin: jmp context_switch_spin" :: "{rsp}"(stack_pointer), "r"(entry_point), "{rdi}"(boot_info) :: "intel");
+ asm!("jmp $1; ${:private}.spin.${:uid}: jmp ${:private}.spin.${:uid}" ::
41
+ "{rsp}"(stack_pointer), "r"(entry_point), "{rdi}"(boot_info) :: "intel");
42
::core::hint::unreachable_unchecked()
43
}
44
0 commit comments