mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
x86_64 syscall: fix interrupts and fix return logging
This commit is contained in:
@@ -115,6 +115,7 @@ arch_syscall_entry:
|
||||
|
||||
; call logging function
|
||||
|
||||
sti
|
||||
mov rdi, rax
|
||||
extern arch_syscall_log
|
||||
call arch_syscall_log ; compiled with __attribute__((no_caller_saved_registers))
|
||||
@@ -122,7 +123,6 @@ arch_syscall_entry:
|
||||
; prepare context argument
|
||||
mov rdi, rsp
|
||||
add rdi, 8 ; context pointer is after r9 argument
|
||||
sti
|
||||
|
||||
cmp rax, syscallcount
|
||||
jae .nosyscall
|
||||
|
||||
Reference in New Issue
Block a user