diff --git a/src/arch/x86_64/interrupt/syscall.rs b/src/arch/x86_64/interrupt/syscall.rs index 2f1247e..a18abdd 100644 --- a/src/arch/x86_64/interrupt/syscall.rs +++ b/src/arch/x86_64/interrupt/syscall.rs @@ -23,7 +23,7 @@ pub unsafe extern fn syscall_instruction() { } // Yes, this is magic. No, you don't need to understand - asm!("xchg bx, bx + asm!(" swapgs // Set gs segment to TSS mov gs:[28], rsp // Save userspace rsp mov rsp, gs:[4] // Load kernel rsp