]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336837: Be more conservative about setting hw.uart.console
authorkevans <kevans@FreeBSD.org>
Thu, 21 Feb 2019 02:52:27 +0000 (02:52 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 21 Feb 2019 02:52:27 +0000 (02:52 +0000)
commitf173231f12a4dadcc46e970fb9b6996b458aa0f9
tree6ee6ab3ee9c4a7f7282a4733eac994eb5da8f7ab
parent929f385c14faefb438e421b7b9688ee7b9b0df9b
MFC r336837: Be more conservative about setting hw.uart.console

Note when we've found a 8250 PNP node. Only try to set hw.uart.console
if we see one (otherwise ignore serial hints). The 8250 is the only
one known to have I/O ports, so limit the guessing to when we've
positively seen one.  And limit this to x86 since that's the only
platform where we have I/O ports. Otherwise, we'd set the serial port
to something crazy for the platform and fall off the cliff early in
boot.
stand/efi/loader/bootinfo.c
stand/efi/loader/main.c