X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdebug.c;h=ac5c0597f9f97bc143e671448d3cff162ca410f6;hb=b7d27cb988daadd457370e7e1a19aaec342e8415;hp=e4f92a7a421238d6c7d3db95ea58a5ea8dc61fa4;hpb=4d1e33453da27fe61a5ce42c204e152b406b66f9;p=tpg%2Facess2.git diff --git a/Kernel/debug.c b/Kernel/debug.c index e4f92a7a..ac5c0597 100644 --- a/Kernel/debug.c +++ b/Kernel/debug.c @@ -1,6 +1,8 @@ /* * AcessOS Microkernel Version * debug.c + * + * TODO: Move the Debug_putchar methods out to the arch/ tree */ #include #include @@ -38,9 +40,9 @@ int putDebugChar(char ch) if(!gbGDB_SerialSetup) { outb(GDB_SERIAL_PORT + 1, 0x00); // Disable all interrupts outb(GDB_SERIAL_PORT + 3, 0x80); // Enable DLAB (set baud rate divisor) - outb(GDB_SERIAL_PORT + 0, 0x03); // Set divisor to 3 (lo byte) 38400 baud - outb(GDB_SERIAL_PORT + 1, 0x00); // (hi byte) - outb(GDB_SERIAL_PORT + 3, 0x03); // 8 bits, no parity, one stop bit + outb(GDB_SERIAL_PORT + 0, 0x0C); // Set divisor to 12 (lo byte) 9600 baud + outb(GDB_SERIAL_PORT + 1, 0x00); // (base is (hi byte) + outb(GDB_SERIAL_PORT + 3, 0x03); // 8 bits, no parity, one stop bit (8N1) outb(GDB_SERIAL_PORT + 2, 0xC7); // Enable FIFO with 14-byte threshold and clear it outb(GDB_SERIAL_PORT + 4, 0x0B); // IRQs enabled, RTS/DSR set gbDebug_SerialSetup = 1;