diff options
author | Ian Moffett <ian@osmora.org> | 2024-12-20 00:28:10 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-12-20 00:29:20 -0500 |
commit | a455da84568992df1e84ba3ff45ff229ecd7c5be (patch) | |
tree | 6402a431a83501150c55ba3fa8d82345a59de752 /sys/kern/kern_panic.c | |
parent | 54ce6d3224e68674de3036ed571a85ff09207068 (diff) |
kernel/amd64: Add panic backtrace
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_panic.c')
-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(); } |