Kernel: Syscalls now get the interrupt stack

This commit is contained in:
Bananymous
2023-07-21 11:01:19 +03:00
parent 21c6135ae2
commit 4e35b8b49d
3 changed files with 24 additions and 1 deletions

View File

@@ -163,7 +163,11 @@ syscall_asm:
movq %rax, %rdi
movq %rbx, %rsi
xchgq %rcx, %rdx
movq %rsp, %rbx
addq $120, %rbx
pushq %rbx
call cpp_syscall_handler
addq $8, %rsp
popaq_no_rax
addq $8, %rsp
iretq