From 9566dac198f685ef947d82facee0be182a77495e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 18:27:47 +0200 Subject: implement basic kernel panics --- kernel/isr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/isr.c') 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 +#include #include #include #include @@ -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)) -- cgit v1.2.3