From 6bdd17edca2fa58263db47841e007cee5a01a26c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 14 May 2024 11:36:23 -0400 Subject: kernel: machdep: Add machine_panic() + panic beep machine_panic() handles things like backtracing, beeping the speaker and halting the processor. Signed-off-by: Ian Moffett --- sys/kern/kern_panic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index 5b90dc8..aec7be3 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -55,8 +55,7 @@ panic(const char *fmt, ...) kprintf("panic: "); vkprintf(fmt, &ap); - __TRY_CALL(backtrace); - processor_halt(); + machine_panic(); __builtin_unreachable(); } -- cgit v1.2.3