diff options
Diffstat (limited to 'kernel/boot')
-rw-r--r-- | kernel/boot/interrupts/exceptions.cc | 4 | ||||
-rw-r--r-- | kernel/boot/interrupts/isr.s | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/kernel/boot/interrupts/exceptions.cc b/kernel/boot/interrupts/exceptions.cc index d05bd77..964d025 100644 --- a/kernel/boot/interrupts/exceptions.cc +++ b/kernel/boot/interrupts/exceptions.cc @@ -26,8 +26,10 @@ namespace Interrupts { void -exception_handler(void) +exception_handler(int irq_number) { + printk("interrupts", "Interrupt: %d", irq_number); + ASSERT_NOT_REACHED(); while (true) __asm__ volatile("cli; hlt"); diff --git a/kernel/boot/interrupts/isr.s b/kernel/boot/interrupts/isr.s index 925bb27..9ffd94e 100644 --- a/kernel/boot/interrupts/isr.s +++ b/kernel/boot/interrupts/isr.s @@ -28,12 +28,14 @@ dd ISR_%+i %macro ISR_WITH_ERROR 1 ISR_%+%1: + push %1 call exception_handler iret %endmacro %macro ISR_NO_ERROR 1 ISR_%+%1: + push %1 call exception_handler iret %endmacro |