syscall: enable fast syscall instruction

This commit is contained in:
Michael Shaw 2024-06-27 13:11:50 -04:00
commit d67c828c6f
6 changed files with 39 additions and 7 deletions

View file

@ -199,6 +199,20 @@ irq 0x0F
.global gate_syscall
gate_syscall:
cli
pushq %r11
pushq %rcx
movq %r10, %rcx
movq %rax, %r9
call syscall
popq %rcx
popq %r11
sysretq
.global gate_syscall_int80
gate_syscall_int80:
cli
movq %r10, %rcx
movq %rax, %r9