diff options
Diffstat (limited to 'kernel/isr.c')
-rw-r--r-- | kernel/isr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/isr.c b/kernel/isr.c index 69c688b..331e9a5 100644 --- a/kernel/isr.c +++ b/kernel/isr.c @@ -1,9 +1,17 @@ #include <kernel/isr.h> #include <kernel/tty.h> +#include <stdbool.h> #include <stdint.h> +bool isr_test_interrupt_called = false; + __attribute__((interrupt)) void isr_double_fault(struct interrupt_frame *frame) { tty_const("#DF"); for(;;); } + +__attribute__((interrupt)) +void isr_test_interrupt(struct interrupt_frame *frame) { + isr_test_interrupt_called = true; +} |