diff options
author | marcel <marcel@FreeBSD.org> | 2006-07-27 00:07:10 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-07-27 00:07:10 +0000 |
commit | 08406d93cdec8b392b538ada3b49516b64d72a03 (patch) | |
tree | 68edd8e1ee04350801af1da1bc8916ee3ece9a99 /sys | |
parent | 5e3e96f008d9c3bd6010d050b59f74df3e21ceb1 (diff) | |
download | FreeBSD-src-08406d93cdec8b392b538ada3b49516b64d72a03.zip FreeBSD-src-08406d93cdec8b392b538ada3b49516b64d72a03.tar.gz |
Properly propagate overrun conditions to the TTY layer.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/uart/uart_tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c index b54c94a..1971049 100644 --- a/sys/dev/uart/uart_tty.c +++ b/sys/dev/uart/uart_tty.c @@ -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); |