stand/efi/eficom: Make aarch64 compat code probe correctly

Make the compat code more correct by probing using the eficom console
structure, not the comconsole one.

Sponsored by:		Netflix
Reviewed by:		kevans
Differential Revision:	https://reviews.freebsd.org/D40222
This commit is contained in:
Warner Losh 2023-05-24 16:34:44 -06:00
parent 42b0b7a926
commit e5d4e036f2

View file

@ -362,10 +362,13 @@ comc_probe(struct console *sc)
static void
comc_probe_compat(struct console *sc)
{
comc_probe(sc);
if (sc->c_flags & (C_PRESENTIN | C_PRESENTOUT)) {
comc_probe(&eficom);
if (eficom.c_flags & (C_PRESENTIN | C_PRESENTOUT)) {
printf("comconsole: comconsole device name is deprecated, switch to eficom\n");
}
/*
* Note: We leave the present bits unset in sc to avoid ghosting.
*/
}
#endif