diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-14 11:36:23 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-14 11:36:23 -0400 |
commit | 6bdd17edca2fa58263db47841e007cee5a01a26c (patch) | |
tree | 74aa0c5283b01cffddd341d46514ccf3c133006c /sys/kern/kern_panic.c | |
parent | 7a414a0c785ce4f12ac33a4e8a5061b21344bdf7 (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/kern_panic.c')
-rw-r--r-- | sys/kern/kern_panic.c | 3 |
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(); } |