added PS/2 mouse code
[bootcensus] / src / serial.c
index 215276c..792f296 100644 (file)
@@ -228,6 +228,11 @@ static int can_send(int fd)
 void ser_putc(int fd, char c)
 {
        int base = ports[fd].base;
+
+       if(c == '\n') {
+               ser_putc(fd, '\r');
+       }
+
        while(!can_send(fd));
        while((inb(base + UART_MSTAT) & MST_CTS) == 0);
        outb(c, base + UART_DATA);