summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/rc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-22 16:45:22 +0000
committerbde <bde@FreeBSD.org>1995-07-22 16:45:22 +0000
commit35509aece996a3270a9b30cb7e72b84ed7f0415c (patch)
tree8394b2b46acc5c94b577982d2fdb4c9fa0e24167 /sys/i386/isa/rc.c
parent18829b9aef82ca3456ff7f260ef55cd9c71e4e18 (diff)
downloadFreeBSD-src-35509aece996a3270a9b30cb7e72b84ed7f0415c.zip
FreeBSD-src-35509aece996a3270a9b30cb7e72b84ed7f0415c.tar.gz
Obtained from: partly from ancient patches of mine via 1.1.5
Give names to the magic tty i/o sleep addresses and use them. This makes it easier to remember what the addresses are for and to keep them unique.
Diffstat (limited to 'sys/i386/isa/rc.c')
-rw-r--r--sys/i386/isa/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c
index 1db4a3d..07e0264 100644
--- a/sys/i386/isa/rc.c
+++ b/sys/i386/isa/rc.c
@@ -825,7 +825,7 @@ again:
if (!(tp->t_state & TS_CARR_ON) && !CALLOUT(dev)
&& !(tp->t_cflag & CLOCAL) && !(flag & O_NONBLOCK)) {
rc->rc_dcdwaits++;
- error = tsleep(&tp->t_rawq, TTIPRI | PCATCH, "rcdcd", 0);
+ error = tsleep(TSA_CARR_ON(tp), TTIPRI | PCATCH, "rcdcd", 0);
rc->rc_dcdwaits--;
if (error != 0)
goto out;
@@ -895,7 +895,7 @@ register struct rc_chans *rc;
}
rc->rc_flags &= ~RC_ACTOUT;
wakeup((caddr_t) &rc->rc_rcb); /* wake bi */
- wakeup((caddr_t) &tp->t_rawq); /* wake dcd */
+ wakeup(TSA_CARR_ON(tp));
(void) splx(s);
}
OpenPOWER on IntegriCloud