From a455da84568992df1e84ba3ff45ff229ecd7c5be Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 20 Dec 2024 00:28:10 -0500 Subject: kernel/amd64: Add panic backtrace Signed-off-by: Ian Moffett --- sys/kern/kern_panic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/kern/kern_panic.c') 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(); } -- cgit v1.2.3