Kernel: Change signal kernel API

return rsp and rip are now stored per thread
This commit is contained in:
Bananymous
2023-07-23 18:33:10 +03:00
parent 2dce0a0415
commit 9729e5a05b
7 changed files with 62 additions and 29 deletions

View File

@@ -64,7 +64,11 @@ isr_stub:
movq 176(%rsp), %rdi
movq 184(%rsp), %rsi
movq %rsp, %rdx
addq $192, %rdx
movq %rsp, %rcx
call cpp_isr_handler
addq $56, %rsp
@@ -75,6 +79,8 @@ isr_stub:
irq_stub:
pushaq
movq 0x78(%rsp), %rdi # irq number
movq %rsp, %rsi
addq $136, %rsi
call cpp_irq_handler
popaq
addq $16, %rsp