HomeFreeBSD

uart: Don't check SPCR tables if !late_console

Description

uart: Don't check SPCR tables if !late_console

On x86 systems, the debug.late_console tunable makes it possible to set
up the console before we call pmap_bootstrap. (The tunable is turned
on by default; setting late_console=0 results in consoles being probed
early.)

Unfortunately this is not compatible with using the ACPI SPCR table to
find the console, since consulting ACPI tables requires mapping memory
addresses. As such, we skip the call to uart_cpu_acpi_spcr from
uart_cpu_x86 in the !late_console case.

Reviewed by: imp
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D35794

Details

Provenance
cpercivaAuthored on Jul 13 2022, 12:39 AM
Reviewer
imp
Differential Revision
D35794: uart: Don't check SPCR tables if !late_console
Parents
rG2e66649e4f34: Another fix to build from 064e6b4.
Branches
Unknown
Tags
Unknown