diff options
author | emaste <emaste@FreeBSD.org> | 2014-07-02 13:24:21 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-07-02 13:24:21 +0000 |
commit | 9825a4c80655e3cdb8527dc1f056c63016ed08e9 (patch) | |
tree | 9d29c4db53b73ea523b6c246c6e969f9e69ac429 /sys/amd64 | |
parent | 39ab708a856a41b70f1934b000d5e8fbd3141f3f (diff) | |
download | FreeBSD-src-9825a4c80655e3cdb8527dc1f056c63016ed08e9.zip FreeBSD-src-9825a4c80655e3cdb8527dc1f056c63016ed08e9.tar.gz |
Prefer vt(4) for UEFI boot
The UEFI framebuffer driver vt_efifb requires vt(4), so add a mechanism
for the startup routine to set the preferred console. This change is
ugly because console init happens very early in the boot, making a
cleaner interface difficult. This change is intended only to facilitate
the sc(4) / vt(4) transition, and can be reverted once vt(4) is the
default.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index b8999bd..82c2c89 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -1955,6 +1955,14 @@ hammer_time(u_int64_t modulep, u_int64_t physfree) clock_init(); /* + * Use vt(4) by default for UEFI boot (during the sc(4)/vt(4) + * transition). + */ + if (preload_search_info(kmdp, MODINFO_METADATA | MODINFOMD_EFI_MAP) != + NULL) + vty_set_preferred(VTY_VT); + + /* * Initialize the console before we print anything out. */ cninit(); |