mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
In ns8250_putc() insert a barrier between writing the character and
checking for transmitter empty.
This commit is contained in:
parent
16283d130f
commit
4e55f7230a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127742
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user