diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-05-02 23:37:07 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-05-02 23:37:07 +0800 |
| commit | 1522abc4bfb199e8bae80e4cee72f83a8704353d (patch) | |
| tree | 2ac5ef47106169ea2c5715cd50e56bc1570c406a /na/drivers/uart.cc | |
| parent | 943bed289d145c1ff09bdd888f8060f2cfb433e8 (diff) | |
| download | lume-1522abc4bfb199e8bae80e4cee72f83a8704353d.tar.gz lume-1522abc4bfb199e8bae80e4cee72f83a8704353d.tar.xz | |
fix: correct UART address conversion in early_putc function
Diffstat (limited to 'na/drivers/uart.cc')
| -rw-r--r-- | na/drivers/uart.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/na/drivers/uart.cc b/na/drivers/uart.cc index 97c3e38..6a35588 100644 --- a/na/drivers/uart.cc +++ b/na/drivers/uart.cc @@ -18,7 +18,7 @@ static uint64 g_uart_size = 0; extern "C" void early_putc(char c) { if (!g_uart_pa) return; - volatile auto* uart = reinterpret_cast<volatile uint8*>(pa_to_va(g_uart_pa)); + volatile auto* uart = reinterpret_cast<volatile uint8*>(pa_to_va(phys_addr(g_uart_pa)).raw); *uart = static_cast<uint8>(c); } |
