aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-09 17:33:09 -0400
committerIan Moffett <ian@osmora.org>2024-04-09 17:33:09 -0400
commitd52caa46b10eb1670bc6f9c55eff6dce288926c5 (patch)
tree0f2dbb29fef2df37ddf4db3ab6af2d7313429e2a /sys/kern
parent3c8dd7d392dc50ca9d356beefba7820a14d7fd74 (diff)
kernel/amd64: Add backtrace support for panic()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_panic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c
index 9fe3fdd..d22f5b2 100644
--- a/sys/kern/kern_panic.c
+++ b/sys/kern/kern_panic.c
@@ -50,6 +50,7 @@ panic(const char *fmt, ...)
kprintf("panic: ");
vkprintf(fmt, &ap);
+ __TRY_CALL(backtrace);
processor_halt();
__builtin_unreachable();