]> Zhao Yanbai Git Server - minix.git/commitdiff
use oxpcie only if enabled to avoid baud bottleneck of uart.
authorBen Gras <ben@minix3.org>
Wed, 19 May 2010 10:18:46 +0000 (10:18 +0000)
committerBen Gras <ben@minix3.org>
Wed, 19 May 2010 10:18:46 +0000 (10:18 +0000)
kernel/arch/i386/arch_system.c

index ac74007f7a90572bdab37be75ff2f01157d8d5a0..c10b6e174b6c4ec79713af500146ac868686f8b9 100644 (file)
@@ -229,8 +229,7 @@ PUBLIC void ser_putc(char c)
 
 #if CONFIG_OXPCIE
        oxpcie_putc(c);
-#endif
-
+#else
         lsr= COM1_LSR;
         thr= COM1_THR;
         for (i= 0; i<100000; i++)
@@ -239,6 +238,7 @@ PUBLIC void ser_putc(char c)
                         break;
         }
         outb( thr, c);
+#endif
 }
 
 /*===========================================================================*