mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue