aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-14 11:36:23 -0400
committerIan Moffett <ian@osmora.org>2024-05-14 11:36:23 -0400
commit6bdd17edca2fa58263db47841e007cee5a01a26c (patch)
tree74aa0c5283b01cffddd341d46514ccf3c133006c /sys/kern
parent7a414a0c785ce4f12ac33a4e8a5061b21344bdf7 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_panic.c3
1 files changed, 1 insertions, 2 deletions
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();
}