diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-27 22:57:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-27 22:57:07 -0400 |
commit | 299dcbeaf0e7d994584523aaa0f8f4f715100ad4 (patch) | |
tree | 6ce585a89c61e3956e5606655fcffefe681bad42 /sys/kern/kern_panic.c | |
parent | 57be12341e5ab37baa7e4ce8818f0739b0d10d64 (diff) |
kernel: panic: Write to TTY during panic
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_panic.c')
-rw-r--r-- | sys/kern/kern_panic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index 2adbcb9..71744af 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -52,6 +52,7 @@ panic(const char *fmt, ...) spinlock_acquire(&lock); /* Never released */ __TRY_CALL(cpu_halt_others); + g_syslog_use_tty = true; va_start(ap, fmt); kprintf(OMIT_TIMESTAMP "panic: "); |