Page MenuHomeFreeBSD

Unbreak manual UART settings (hw.uart.console) on aarch64
AbandonedPublic

Authored by val_packett.cool on Mar 7 2019, 8:54 PM.
Tags
Referenced Files
Unknown Object (File)
Nov 28 2024, 6:01 AM
Unknown Object (File)
Oct 14 2024, 12:56 PM
Unknown Object (File)
Oct 6 2024, 10:53 AM
Unknown Object (File)
Oct 6 2024, 7:25 AM
Unknown Object (File)
Oct 4 2024, 12:41 PM
Unknown Object (File)
Oct 3 2024, 10:00 AM
Unknown Object (File)
Oct 2 2024, 10:31 PM
Unknown Object (File)
Oct 2 2024, 9:12 PM

Details

Reviewers
andrew
Group Reviewers
Contributor Reviews (src)
Summary

uart_getenv sets di->bas.bst = uart_bus_space_mem;

uart_cpu_getdev sets uart_bus_space_mem = di->bas.bst;

So it was passing the garbage uninitialized value back and forth… and I was wondering why the manually configured PCI UART on the AWS EC2 a1 (Graviton) was not working. (The UART there should be configured via ACPI, but to debug that, I needed a UART in the first place.)

Let's initialize the correct value for the memory space, similar to bus_space_tag_t uart_bus_space_mem = X86_BUS_SPACE_MEM; on amd64.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped