diff --git a/kernel/arch/x86_64/isr.S b/kernel/arch/x86_64/isr.S index 3c43a8c..e7c1362 100644 --- a/kernel/arch/x86_64/isr.S +++ b/kernel/arch/x86_64/isr.S @@ -24,8 +24,14 @@ common_isr_stub: cld mov %rsp, %rdi + + mov %rsp, %r12 + and $-16, %rsp + call interrupt_handler + mov %r12, %rsp + pop %r15 pop %r14 pop %r13