diff --git a/k/idt.h b/k/idt.h index 68ad454..2bfac15 100644 --- a/k/idt.h +++ b/k/idt.h @@ -44,14 +44,6 @@ struct idt_r // by the isr. We can refactor this by offsetting esp before pushing it. struct int_args { - uint32_t edi; - uint32_t esi; - uint32_t ebp; - uint32_t esp; - uint32_t ebx; - uint32_t edx; - uint32_t ecx; - uint32_t eax; uint32_t int_code; uint32_t err_code; } __attribute__ ((packed)); diff --git a/k/isr.S b/k/isr.S index 872689f..5ca0fee 100644 --- a/k/isr.S +++ b/k/isr.S @@ -4,6 +4,7 @@ isr: pushal // save registers pushl %esp +add $32, (%esp) call handle_interrupt add $4, %esp