diff options
author | bde <bde@FreeBSD.org> | 1997-12-28 06:20:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-28 06:20:47 +0000 |
commit | 6923614d1d4a817945245b1ef27d27fb072e8d00 (patch) | |
tree | d9d82f8aa84d65fbfb903d1427a3084264e572de | |
parent | aee0b8bb682db4068cf9d431cd9c84aea31f492c (diff) | |
download | FreeBSD-src-6923614d1d4a817945245b1ef27d27fb072e8d00.zip FreeBSD-src-6923614d1d4a817945245b1ef27d27fb072e8d00.tar.gz |
Always call ttwwakeup() before returning from comstart(). It isn't
necessary to call it when the tty layer's output state has not been
changed, but siostop() sometimes changes the TS_BUSY state and then
calls comstart() mainly for its side effect of calling ttwwakeup().
-rw-r--r-- | sys/dev/sio/sio.c | 3 | ||||
-rw-r--r-- | sys/i386/isa/sio.c | 3 | ||||
-rw-r--r-- | sys/isa/sio.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 145239a..7e910d5 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $ + * $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $ */ #include "opt_comconsole.h" @@ -2199,6 +2199,7 @@ comstart(tp) } enable_intr(); if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) { + ttwwakeup(tp); splx(s); return; } diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c index 145239a..7e910d5 100644 --- a/sys/i386/isa/sio.c +++ b/sys/i386/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $ + * $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $ */ #include "opt_comconsole.h" @@ -2199,6 +2199,7 @@ comstart(tp) } enable_intr(); if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) { + ttwwakeup(tp); splx(s); return; } diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 145239a..7e910d5 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $ + * $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $ */ #include "opt_comconsole.h" @@ -2199,6 +2199,7 @@ comstart(tp) } enable_intr(); if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) { + ttwwakeup(tp); splx(s); return; } |