diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-21 18:15:25 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-21 18:15:25 -0500 |
| commit | 21fb4d3c9bfc961a405b3acb603a9f51aef81c18 (patch) | |
| tree | 46323e41e9667b503b24380984b3e7223b738c5b | |
| parent | 5beeee242f784dce5f09608f66884aa4d12bd33f (diff) | |
mos/x86_64: uart: Make sure to clear DLAB after init
Signed-off-by: Ian Moffett <ian@osmora.org>
| -rw-r--r-- | mos/sys/arch/x86_64/io/uart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mos/sys/arch/x86_64/io/uart.c b/mos/sys/arch/x86_64/io/uart.c index 73ed0ed..d6b0a41 100644 --- a/mos/sys/arch/x86_64/io/uart.c +++ b/mos/sys/arch/x86_64/io/uart.c @@ -39,6 +39,9 @@ init_uart(USHORT port) /* 38400 baud */ md_outb(UART_DIVLOW(port), 0x03); md_outb(UART_DIVHIGH(port), 0x00); + + reg &= ~UART_LCR_DLAB; + md_outb(UART_LCR(port), reg); } void |
