From a445481c3e5799fa174a7288fc01ceeaa9740805 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 1 Aug 1994 10:38:19 +0000 Subject: [PATCH] Fixed a bug that was introduced in the conversion from 1.1.5 to 2.0. --- sys/dev/syscons/syscons.c | 20 ++++++++++++++------ sys/i386/isa/syscons.c | 20 ++++++++++++++------ sys/isa/syscons.c | 20 ++++++++++++++------ 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 39292f93dcf..a2a931c6c2b 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from:@(#)syscons.c 1.3 940129 - * $Id: syscons.c,v 1.44 1994/04/21 14:22:26 sos Exp $ + * $Id: syscons.c,v 1.46 1994/05/25 08:59:56 rgrimes Exp $ * */ @@ -94,7 +94,7 @@ #define BELL_DURATION 5 #define BELL_PITCH 800 #define TIMER_FREQ 1193182 /* should be in isa.h */ -#define PCBURST 128 +#define PCBURST 256 /* defines related to hardware addresses */ #define MONO_BASE 0x3B4 /* crt controller base mono */ @@ -1038,16 +1038,24 @@ void pcstart(struct tty *tp) if (scp->status & SLKED) return; - s = spltty(); + s = spltty(); /* Isn't start always called at spltty? */ if (!(tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))) { tp->t_state |= TS_BUSY; splx(s); rbp = &tp->t_outq; - len = q_to_b(rbp, buf, PCBURST); - for (i=0; ic_cc) { + len = q_to_b(rbp, buf, PCBURST); + for (i=0; it_state &= ~TS_BUSY; +#if 0 + if (rbp->c_cc) { + tp->t_state |= TS_TIMEOUT; + timeout((timeout_t)ttrstrt, (caddr_t)tp, 1); + } +#endif if (rbp->c_cc <= tp->t_lowat) { if (tp->t_state & TS_ASLEEP) { tp->t_state &= ~TS_ASLEEP; diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index 39292f93dcf..a2a931c6c2b 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from:@(#)syscons.c 1.3 940129 - * $Id: syscons.c,v 1.44 1994/04/21 14:22:26 sos Exp $ + * $Id: syscons.c,v 1.46 1994/05/25 08:59:56 rgrimes Exp $ * */ @@ -94,7 +94,7 @@ #define BELL_DURATION 5 #define BELL_PITCH 800 #define TIMER_FREQ 1193182 /* should be in isa.h */ -#define PCBURST 128 +#define PCBURST 256 /* defines related to hardware addresses */ #define MONO_BASE 0x3B4 /* crt controller base mono */ @@ -1038,16 +1038,24 @@ void pcstart(struct tty *tp) if (scp->status & SLKED) return; - s = spltty(); + s = spltty(); /* Isn't start always called at spltty? */ if (!(tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))) { tp->t_state |= TS_BUSY; splx(s); rbp = &tp->t_outq; - len = q_to_b(rbp, buf, PCBURST); - for (i=0; ic_cc) { + len = q_to_b(rbp, buf, PCBURST); + for (i=0; it_state &= ~TS_BUSY; +#if 0 + if (rbp->c_cc) { + tp->t_state |= TS_TIMEOUT; + timeout((timeout_t)ttrstrt, (caddr_t)tp, 1); + } +#endif if (rbp->c_cc <= tp->t_lowat) { if (tp->t_state & TS_ASLEEP) { tp->t_state &= ~TS_ASLEEP; diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index 39292f93dcf..a2a931c6c2b 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from:@(#)syscons.c 1.3 940129 - * $Id: syscons.c,v 1.44 1994/04/21 14:22:26 sos Exp $ + * $Id: syscons.c,v 1.46 1994/05/25 08:59:56 rgrimes Exp $ * */ @@ -94,7 +94,7 @@ #define BELL_DURATION 5 #define BELL_PITCH 800 #define TIMER_FREQ 1193182 /* should be in isa.h */ -#define PCBURST 128 +#define PCBURST 256 /* defines related to hardware addresses */ #define MONO_BASE 0x3B4 /* crt controller base mono */ @@ -1038,16 +1038,24 @@ void pcstart(struct tty *tp) if (scp->status & SLKED) return; - s = spltty(); + s = spltty(); /* Isn't start always called at spltty? */ if (!(tp->t_state & (TS_TIMEOUT|TS_BUSY|TS_TTSTOP))) { tp->t_state |= TS_BUSY; splx(s); rbp = &tp->t_outq; - len = q_to_b(rbp, buf, PCBURST); - for (i=0; ic_cc) { + len = q_to_b(rbp, buf, PCBURST); + for (i=0; it_state &= ~TS_BUSY; +#if 0 + if (rbp->c_cc) { + tp->t_state |= TS_TIMEOUT; + timeout((timeout_t)ttrstrt, (caddr_t)tp, 1); + } +#endif if (rbp->c_cc <= tp->t_lowat) { if (tp->t_state & TS_ASLEEP) { tp->t_state &= ~TS_ASLEEP;