Kernel: Cleanup signal trampoline

This commit is contained in:
Bananymous
2023-07-30 15:58:35 +03:00
parent 6f7d97cf94
commit 08cdf88586
3 changed files with 5 additions and 13 deletions

View File

@@ -1,5 +1,7 @@
.section .userspace, "aw"
#include <sys/syscall.h>
.global signal_trampoline
signal_trampoline:
pushq %rax
@@ -18,14 +20,13 @@ signal_trampoline:
pushq %r14
pushq %r15
xchgw %bx, %bx
movq 128(%rsp), %rdi
movq 120(%rsp), %rax
call *%rax
movq 128(%rsp), %rdi
call signal_done
movq $SYS_SIGNAL_DONE, %rax
movq 128(%rsp), %rbx
int $0x80
popq %r15
popq %r14