From 5cfe5443e678e3354ed3488baea9c91cbb9e7697 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 16:49:59 +0200 Subject: interrupt self-test --- kernel/isr.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/isr.c') 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 #include +#include #include +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; +} -- cgit v1.2.3