summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-07-27 00:07:10 +0000
committermarcel <marcel@FreeBSD.org>2006-07-27 00:07:10 +0000
commit08406d93cdec8b392b538ada3b49516b64d72a03 (patch)
tree68edd8e1ee04350801af1da1bc8916ee3ece9a99 /sys/dev/uart
parent5e3e96f008d9c3bd6010d050b59f74df3e21ceb1 (diff)
downloadFreeBSD-src-08406d93cdec8b392b538ada3b49516b64d72a03.zip
FreeBSD-src-08406d93cdec8b392b538ada3b49516b64d72a03.tar.gz
Properly propagate overrun conditions to the TTY layer.
MFC after: 3 days
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_tty.c2
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);
OpenPOWER on IntegriCloud