acrn: rename param in uart16550_init

Tracked-On: #4390
Signed-off-by: Alexander Merritt <alex.merritt@intel.com>
This commit is contained in:
Alexander Merritt
2020-01-29 11:53:05 -08:00
committed by wenlingz
parent 2e10930d12
commit 920f02706a

View File

@@ -193,13 +193,13 @@ static void uart16550_set_baud_rate(uint32_t baud_rate)
uart16550_write_reg(uart, temp_reg, UART16550_LCR); uart16550_write_reg(uart, temp_reg, UART16550_LCR);
} }
void uart16550_init(bool eraly_boot) void uart16550_init(bool early_boot)
{ {
if (!uart.enabled) { if (!uart.enabled) {
return; return;
} }
if (!eraly_boot && !uart.serial_port_mapped) { if (!early_boot && !uart.serial_port_mapped) {
uart.mmio_base_vaddr = hpa2hva(hva2hpa_early(uart.mmio_base_vaddr)); uart.mmio_base_vaddr = hpa2hva(hva2hpa_early(uart.mmio_base_vaddr));
hv_access_memory_region_update((uint64_t)uart.mmio_base_vaddr, PDE_SIZE); hv_access_memory_region_update((uint64_t)uart.mmio_base_vaddr, PDE_SIZE);
return; return;