diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_panic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index 0a17456..af154a8 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -53,6 +53,9 @@ panic(const char *fmt, ...) kprintf(OMIT_TIMESTAMP "panic: "); vkprintf(fmt, &ap); + kprintf(OMIT_TIMESTAMP "** backtrace\n"); + backtrace(); + cpu_reboot(REBOOT_HALT); __builtin_unreachable(); } |