diff options
author | dzwdz | 2021-07-09 16:49:59 +0200 |
---|---|---|
committer | dzwdz | 2021-07-09 16:49:59 +0200 |
commit | 5cfe5443e678e3354ed3488baea9c91cbb9e7697 (patch) | |
tree | fb545397520ceb2580aa9df3086444ea72e121e3 /kernel/isr.c | |
parent | 79dbeb367cc7b39e965c052ebb62076a2118c54c (diff) |
interrupt self-test
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; +} |