]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initialize uart_bus_space_mem.
authorcperciva <cperciva@FreeBSD.org>
Fri, 22 Mar 2019 06:28:37 +0000 (06:28 +0000)
committercperciva <cperciva@FreeBSD.org>
Fri, 22 Mar 2019 06:28:37 +0000 (06:28 +0000)
commit3fdef584c0f900968185ba3e7cbba3b9cf2ec06c
tree393ee587896ea84f2c910dd2d80cfd4159413c04
parentb0d688847afef1bcda745579093fa8f6bfdf1f9f
Initialize uart_bus_space_mem.

This value was being used uninitialized, resulting in predictable issues
on systems with memory-mapped UART registers.

A case could be made that memmap_bus should be declared in a header
rather than being declared in each .c file which needs to refer to it,
but that's a broader style question.

This commit unbreaks hw.uart.console="mm:..." on ARM64.

Submitted by: Greg V
sys/dev/uart/uart_cpu_arm64.c