summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/panic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index c75fafb..be7cffb 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -1,8 +1,11 @@
#include <kernel/panic.h>
#include <kernel/io.h>
+static int panicked = 0;
+
void panic(const char *str) {
kprintf("KERNEL PANIC\n");
kprintf("ERROR: %s\n", str);
+ panicked = 1;
while (1);
}