Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 May 2026 15:17:20 +0000
From:      Ahmad Khalifa <vexeduxr@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bc83f414583c - main - vt_core: don't draw the splash if a panic occurred
Message-ID:  <69f76700.18450.51902b51@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vexeduxr:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc83f414583ccaf337ef3b7c019df7727d6a3aae

commit bc83f414583ccaf337ef3b7c019df7727d6a3aae
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-05-03 13:18:38 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-05-03 15:15:38 +0000

    vt_core: don't draw the splash if a panic occurred
    
    The shutdown splash draws over all the useful info if ddb(4) is
    disabled. Don't draw the splash screen if we're rebooting because of a
    panic.
    
    MFC after:      3 days
---
 sys/dev/vt/vt_core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 68a9a71c3d72..f7cffcea5b92 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -1684,6 +1684,9 @@ vtterm_splash(struct vt_device *vd)
 	uintptr_t image;
 	vt_axis_t top, left;
 
+	if (KERNEL_PANICKED())
+		return;
+
 	if ((vd->vd_flags & VDF_TEXTMODE) != 0 || (boothowto & RB_MUTE) == 0)
 		return;
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f76700.18450.51902b51>