From c07c6eba644d5b947f38a6fb79489ff3584196cf Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Fri, 7 Nov 2008 15:03:52 -0500 Subject: [PATCH] fix hurr bug --- lib/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/serial.c b/lib/serial.c index 5318c95..0cbb495 100644 --- a/lib/serial.c +++ b/lib/serial.c @@ -33,10 +33,10 @@ unsigned char _inb(unsigned short port) void serial_init() { unsigned short baud = SER_BAUD_REQ / SER_BAUD_BASE; - _outb(SER_LCR, inb(SER_LCR) | SER_LCR_DLAB); + _outb(SER_LCR, _inb(SER_LCR) | SER_LCR_DLAB); _outb(SER_DLL, baud & 0xFF); _outb(SER_DLM, baud >> 8); - _outb(SER_LCR, inb(SER_LCR) & ~SER_LCR_DLAB); + _outb(SER_LCR, _inb(SER_LCR) & ~SER_LCR_DLAB); _outb(SER_IER, 0x0); _outb(SER_FCR, 0x0); /* FIFOs off */ _outb(SER_LCR, 0x03); /* 8 data bits, one stop bit, no parity */ -- 2.43.0