Skip to content
Snippets Groups Projects
Verified Commit 9ccaed71 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Remove bochs breakpoint in kernel

parent ec66bf2e
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ pub unsafe extern fn syscall_instruction() { ...@@ -23,7 +23,7 @@ pub unsafe extern fn syscall_instruction() {
} }
// Yes, this is magic. No, you don't need to understand // Yes, this is magic. No, you don't need to understand
asm!("xchg bx, bx asm!("
swapgs // Set gs segment to TSS swapgs // Set gs segment to TSS
mov gs:[28], rsp // Save userspace rsp mov gs:[28], rsp // Save userspace rsp
mov rsp, gs:[4] // Load kernel rsp mov rsp, gs:[4] // Load kernel rsp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment