summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorPaul Winder <pwinder@racktopsystems.com>2020-08-12 14:57:08 +0100
committerPaul Winder <paul@winder.uk.net>2020-09-18 12:41:21 +0100
commit24571f7b017865fbad5f588fb0694b558c94e14d (patch)
tree1f1f20b9eb77e619a3fc8cdca7228fabc930f97d /usr/src
parent3d21c6bf2078598ab053d382b8a9af3b70b8e995 (diff)
downloadillumos-joyent-24571f7b017865fbad5f588fb0694b558c94e14d.tar.gz
13075 No console messages after early boot on non-VGA graphics
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Randy Fishel <randyf@sibernet.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c b/usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c
index 6d1a99ea05..0d2d1fe1de 100644
--- a/usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c
+++ b/usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c
@@ -11,6 +11,7 @@
/*
* Copyright 2016 Toomas Soome <tsoome@me.com>
+ * Copyright 2020 RackTop Systems, Inc.
*/
/*
@@ -81,6 +82,17 @@ gfxp_check_for_console(dev_info_t *devi, struct gfxp_fb_softc *softc,
uint16_t data16;
/*
+ * fb_info is filled in by data gathered by the bootloader.
+ * In particular we are interested in "paddr" which is the physical
+ * address of the framebuffer. If that is not zero, then we have
+ * a valid framebuffer and we can use this device as a console.
+ */
+ if (fb_info.paddr != 0) {
+ softc->flags |= GFXP_FLAG_CONSOLE;
+ return;
+ }
+
+ /*
* Based on Section 11.3, "PCI Display Subsystem Initialization",
* of the 1.1 PCI-to-PCI Bridge Architecture Specification
* determine if this is the boot console device. First, see