entry: mov %r10 into %rcx after syscall entry

This commit is contained in:
Michael Shaw 2024-02-27 02:23:01 -05:00
commit 05e8a8d522

View file

@ -196,6 +196,7 @@ irq 0x0F
.global gate_syscall .global gate_syscall
gate_syscall: gate_syscall:
cli cli
movq %r10, %rcx
save_context save_context
pushq %rax pushq %rax
movq 0(%rax), %rdi movq 0(%rax), %rdi