use oxpcie only if enabled to avoid baud bottleneck of uart.

This commit is contained in:
Ben Gras 2010-05-19 10:18:46 +00:00
parent 9ba760e603
commit 6d0e53c2ca

View file

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