From d52caa46b10eb1670bc6f9c55eff6dce288926c5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 9 Apr 2024 17:33:09 -0400 Subject: kernel/amd64: Add backtrace support for panic() Signed-off-by: Ian Moffett --- sys/kern/kern_panic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern') 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(); -- cgit v1.2.3