From 299dcbeaf0e7d994584523aaa0f8f4f715100ad4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 27 May 2024 22:57:07 -0400 Subject: kernel: panic: Write to TTY during panic Signed-off-by: Ian Moffett --- sys/kern/kern_panic.c | 1 + 1 file changed, 1 insertion(+) 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: "); -- cgit v1.2.3