From 2a09d77902c5007fb30c40f9c89ecb46aedf4006 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 22 Jul 2024 18:05:07 +0200 Subject: kernel/isr: improve interrupt handling code On the assembly side, ensure the stack frame looks always the same, by pushing a fake "error code" for the interrupts that don't generate one. On the C side, use a struct instead of magic indices into an "array", and make it consistent with the current style. --- src/kernel/arch/amd64/interrupts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/interrupts.h') diff --git a/src/kernel/arch/amd64/interrupts.h b/src/kernel/arch/amd64/interrupts.h index dfc523a..288bd78 100644 --- a/src/kernel/arch/amd64/interrupts.h +++ b/src/kernel/arch/amd64/interrupts.h @@ -14,4 +14,4 @@ extern const char _isr_stubs; void irq_init(void); void irq_eoi(uint8_t line); -void isr_stage3(uint8_t interrupt, uint64_t *stackframe); +void isr_stage3(uint8_t interrupt, void *stackframe); -- cgit v1.2.3