diff options
author | dzwdz | 2024-07-22 18:05:07 +0200 |
---|---|---|
committer | dzwdz | 2024-07-22 18:05:07 +0200 |
commit | 2a09d77902c5007fb30c40f9c89ecb46aedf4006 (patch) | |
tree | 35e3f3332982fc359941e8cbc4ed5e3c5bf73425 /src/kernel/arch/amd64/interrupts.h | |
parent | 1fc2d9c88af77c3af81b6bd461e6b019b97d2dbb (diff) |
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.
Diffstat (limited to 'src/kernel/arch/amd64/interrupts.h')
-rw-r--r-- | src/kernel/arch/amd64/interrupts.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |