modules
This commit is contained in:
+3
-3
@@ -94,9 +94,9 @@ void task_entry_thunk() {
|
||||
asm volatile(
|
||||
"mov rdi, rbx\n"
|
||||
"mov rsi, r12\n"
|
||||
"jmp %c0"
|
||||
"jmp %0"
|
||||
:
|
||||
: "i"(task_entry)
|
||||
: "r"(task_entry)
|
||||
: "memory"
|
||||
);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ bool arch_sched_preempt_enable() {
|
||||
void arch_sched_jump_to_context(struct arch_context* context) {
|
||||
asm volatile(
|
||||
"mov rsp, rdi\n"
|
||||
"jmp %c0\n" ::"i"(interrupt_return)
|
||||
"jmp %0\n" ::"r"(interrupt_return)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user