From 35509aece996a3270a9b30cb7e72b84ed7f0415c Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 22 Jul 1995 16:45:22 +0000 Subject: 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. --- sys/i386/isa/rc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/isa/rc.c') 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); } -- cgit v1.1