]> Joshua Wise's Git repositories - netwatch.git/commitdiff
fix hurr bug
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 7 Nov 2008 20:03:52 +0000 (15:03 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 7 Nov 2008 20:03:52 +0000 (15:03 -0500)
lib/serial.c

index 5318c95ae733f3e7a5b117768b33d05a4b064625..0cbb495b2a0a2ea00d0a1259e6d134329f53c1a2 100644 (file)
@@ -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 */
This page took 0.028689 seconds and 4 git commands to generate.