From 6cbe5a00f4e9dc80885a564135b7890dd33d7e19 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 12 Apr 2021 15:22:27 +0000 Subject: page faults, beginning the heap, bugs in panic.c --- kernel/panic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel/panic.c') diff --git a/kernel/panic.c b/kernel/panic.c index 7a3a729..333be0d 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -1,4 +1,7 @@ #include "panic.h" +#include "kprint.h" + +#include static char const *reason_strings[] = { "general panic", @@ -8,7 +11,7 @@ static char const *reason_strings[] = { noreturn void panic(enum panic_reason reason) { // TODO: kprintf() and friends - kputs("kernel panic: ") + kputs("kernel panic: "); kputs(reason_strings[reason]); kputs("\n"); halt(); -- cgit v1.3.1-1-g115d