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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127742

View File

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