mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
committed by
GitHub
parent
b337f65abb
commit
3fc7bf6aa1
@@ -50,7 +50,7 @@ pub unsafe fn context_switch_to(
|
|||||||
"call asm_context_switch"
|
"call asm_context_switch"
|
||||||
:
|
:
|
||||||
: "{rdi}"(new_stack_pointer), "{rsi}"(prev_thread_id), "{rdx}"(switch_reason as u64)
|
: "{rdi}"(new_stack_pointer), "{rsi}"(prev_thread_id), "{rdx}"(switch_reason as u64)
|
||||||
: "rax", "rbx", "rcx", "rdx", "rsi", "rdi", "rpb", "r8", "r9", "r10",
|
: "rax", "rbx", "rcx", "rdx", "rsi", "rdi", "rbp", "r8", "r9", "r10",
|
||||||
"r11", "r12", "r13", "r14", "r15", "rflags", "memory"
|
"r11", "r12", "r13", "r14", "r15", "rflags", "memory"
|
||||||
: "intel", "volatile"
|
: "intel", "volatile"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user