Files
Rick Richard 9db8ae83e6 uart: Set the bus space tag before parsing hw.uart.console
uart_cpu_getdev() lets hw.uart.console override the FDT, but
uart_getenv() maps an "mm:" address with uart_bus_space_mem, which is
only assigned after the FDT probe.  On riscv and arm it is still NULL
at that point, so bus_space_map() faults before there is a console.
On riscv this happens on any EFI boot where the firmware provides an
SPCR table, since the loader turns it into hw.uart.console.

Initialize uart_bus_space_mem to fdtbus_bs_tag, as uart_cpu_arm64.c
does with &memmap_bus (See also 0624eddcff).

PR:		299089
Reviewed by:	mhorne
MFC after:	1 week
Signed-off-by:	Rick Richard <[email protected]>
2026-11-04 13:31:03 -04:00
..
2026-05-27 22:14:58 +02:00
…
…