In ns8250_putc() insert a barrier between writing the character and

checking for transmitter empty.
This commit is contained in:
Marcel Moolenaar 2004-04-02 07:37:28 +00:00
parent 16283d130f
commit 4e55f7230a

View File

@ -304,6 +304,7 @@ ns8250_putc(struct uart_bas *bas, int c)
while ((uart_getreg(bas, REG_LSR) & LSR_THRE) == 0 && --limit) while ((uart_getreg(bas, REG_LSR) & LSR_THRE) == 0 && --limit)
DELAY(delay); DELAY(delay);
uart_setreg(bas, REG_DATA, c); uart_setreg(bas, REG_DATA, c);
uart_barrier(bas);
limit = 40; limit = 40;
while ((uart_getreg(bas, REG_LSR) & LSR_TEMT) == 0 && --limit) while ((uart_getreg(bas, REG_LSR) & LSR_TEMT) == 0 && --limit)
DELAY(delay); DELAY(delay);