removed waiting for CTS in serial out and reinstated the serial output by default...
[bootcensus] / src / serial.c
index 215276c..e833672 100644 (file)
@@ -228,8 +228,13 @@ 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);
+       /*while((inb(base + UART_MSTAT) & MST_CTS) == 0);*/
        outb(c, base + UART_DATA);
 }