summaryrefslogtreecommitdiff
path: root/kernel/isr.c
diff options
context:
space:
mode:
authordzwdz2021-07-09 18:27:47 +0200
committerdzwdz2021-07-09 18:27:47 +0200
commit9566dac198f685ef947d82facee0be182a77495e (patch)
tree1e09721f226bf3293e11f37777f2964a2c59d529 /kernel/isr.c
parent5cfe5443e678e3354ed3488baea9c91cbb9e7697 (diff)
implement basic kernel panics
Diffstat (limited to 'kernel/isr.c')
-rw-r--r--kernel/isr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/isr.c b/kernel/isr.c
index 331e9a5..e6a9871 100644
--- a/kernel/isr.c
+++ b/kernel/isr.c
@@ -1,4 +1,5 @@
#include <kernel/isr.h>
+#include <kernel/panic.h>
#include <kernel/tty.h>
#include <stdbool.h>
#include <stdint.h>
@@ -8,7 +9,7 @@ bool isr_test_interrupt_called = false;
__attribute__((interrupt))
void isr_double_fault(struct interrupt_frame *frame) {
tty_const("#DF");
- for(;;);
+ panic();
}
__attribute__((interrupt))