HomeFreeBSD

efi loader: Choose a console mode instead if hw.vga.textmode is set

Description

efi loader: Choose a console mode instead if hw.vga.textmode is set

Not all systems use efifb; pull hw.vga.textmode and choose a good console
mode instead if it's set to something non-zero. This is basically a revival
of the code that used to live in boot1, but instead rebased onto this
different way of doing mode selection in loader.efi.

Interestingly enough, the regression that was previously introduced where
GOP would not reflect the console setting does not seem to exist when
console mode selection is done here. I've not done any investigation as to
why this is the case. Nevertheless, boot1.efi is still not the best place to
do mode selection.

Details

Provenance
kevansAuthored on
Parents
rS331473: MFC: r331285
Branches
Unknown
Tags
Unknown