Ignore kern.vt.splash_cpu without graphics

When the system has no graphical console, such as bhyve in common
configurations, ignore kern.vt.splash_cpu, instead of panicking
on INVARIANTS kernels.

Reviewed by:	cem dumbbell
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D20877
This commit is contained in:
Eric van Gyzen 2019-07-08 13:46:26 +00:00
parent 54fdf3bf19
commit 0374e156a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349834

View File

@ -229,9 +229,8 @@ vt_init_logos(void *dummy)
return;
VT_LOCK(vd);
KASSERT((vd->vd_flags & VDF_INITIALIZED) != 0,
("vd %p not initialized", vd));
if ((vd->vd_flags & VDF_INITIALIZED) == 0)
goto out;
if ((vd->vd_flags & (VDF_DEAD | VDF_TEXTMODE)) != 0)
goto out;
if (vd->vd_height <= vt_logo_sprite_height)