:: commit c2b1be81dccccca61c061ac0416dd39e1f0293c9

mintsuki <mintsuki@protonmail.com> — 2022-03-11 04:11

parents: d6be41921f

serial: Ensure DLAB off before initiatialisation

diff --git a/common/drivers/serial.s2.c b/common/drivers/serial.s2.c
index 20cfa6a2..4141dc4c 100644
--- a/common/drivers/serial.s2.c
+++ b/common/drivers/serial.s2.c
@@ -34,6 +34,7 @@ static void serial_initialise(void) {
 
 #if bios == 1
     // Init com1
+    outb(0x3f8 + 3, 0x00);
     outb(0x3f8 + 1, 0x00);
     outb(0x3f8 + 3, 0x80);
     outb(0x3f8 + 0, 0x0c); // 9600 baud
tab: 248 wrap: offon