]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
boot1 EFI: reset the screen and select the best mode.
authorrpaulo <rpaulo@FreeBSD.org>
Sat, 4 Apr 2015 04:27:54 +0000 (04:27 +0000)
committerrpaulo <rpaulo@FreeBSD.org>
Sat, 4 Apr 2015 04:27:54 +0000 (04:27 +0000)
commit0e7c1179da33965306e740c3a1b2bf9ab2ff58a8
tree4a917b562bf8e22b15111c87e7cdfd0222f25ce7
parent2533468b8cafd57d889a5fcad80b7b8ce3cb301b
boot1 EFI: reset the screen and select the best mode.

It's necessary to reset the screen to make sure any vendor pixels are
gone when we start boot1.  In the Lenovo X1 (3rd gen), this is the
only way to clear the screen.  Previously, the Lenovo logo would only
disappear after the kernel started scrolling the display.

After resetting the screen, EFI could put us in the worst LCD mode
(oversized characters), so we now find the largest mode we can use and
hope it's the most appropriate one (it's not trivial to tell what's
the correct LCD resolution at this point).  It's worth noting that the
final stage loader has a 'mode' command that can be used to switch
text modes.

While there, enable the software cursor, just like in the legacy boot
mode.

MFC after: 1 week
sys/boot/efi/boot1/boot1.c