Properly propagate overrun conditions to the TTY layer.

MFC after: 3 days
This commit is contained in:
Marcel Moolenaar 2006-07-27 00:07:10 +00:00
parent a4eb85b6ac
commit dd5b096f42

View File

@ -313,6 +313,8 @@ uart_tty_intr(void *arg)
c = xc & 0xff;
if (xc & UART_STAT_FRAMERR)
c |= TTY_FE;
if (xc & UART_STAT_OVERRUN)
c |= TTY_OE;
if (xc & UART_STAT_PARERR)
c |= TTY_PE;
ttyld_rint(tp, c);