summaryrefslogtreecommitdiff
path: root/src/kernel/panic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r--src/kernel/panic.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/panic.h b/src/kernel/panic.h
index c4cd194..8cb32f4 100644
--- a/src/kernel/panic.h
+++ b/src/kernel/panic.h
@@ -3,9 +3,10 @@
#include <kernel/util.h>
#define _panic(type) do { \
- kprintf(" an "type" PANIC! at the "); \
+ kprintf("\nan "type" PANIC! at the "); \
kprintf(__func__); \
- kprintf(" (" __FILE__ ":" NUM2STR(__LINE__) ") "); \
+ kprintf(" (" __FILE__ ":" NUM2STR(__LINE__) ")\n"); \
+ debug_stacktrace(); \
halt_cpu(); \
} while (0)