syscall: enable fast syscall instruction
This commit is contained in:
parent
32d12d09ca
commit
d67c828c6f
6 changed files with 39 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue