diff --git a/hypervisor/debug/uart16550.c b/hypervisor/debug/uart16550.c index 747c9246b..022a2f982 100644 --- a/hypervisor/debug/uart16550.c +++ b/hypervisor/debug/uart16550.c @@ -193,13 +193,13 @@ static void uart16550_set_baud_rate(uint32_t baud_rate) uart16550_write_reg(uart, temp_reg, UART16550_LCR); } -void uart16550_init(bool eraly_boot) +void uart16550_init(bool early_boot) { if (!uart.enabled) { 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)); hv_access_memory_region_update((uint64_t)uart.mmio_base_vaddr, PDE_SIZE); return;