diff options
author | kato <kato@FreeBSD.org> | 1997-11-03 02:30:45 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-11-03 02:30:45 +0000 |
commit | c22960aa652ac383beb46fac64febd2aae671fdc (patch) | |
tree | 548317ef6ffd87b79d73a5de06cfebd58e4cade7 /sys | |
parent | c08005ca1f837305b56756870cc6c6239c664bc6 (diff) | |
download | FreeBSD-src-c22960aa652ac383beb46fac64febd2aae671fdc.zip FreeBSD-src-c22960aa652ac383beb46fac64febd2aae671fdc.tar.gz |
Sync with sys/i386/isa/sio.c revision 1.188.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/cbus/sio.c | 5 | ||||
-rw-r--r-- | sys/pc98/pc98/sio.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 2accce2..1a57098 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.40 1997/10/13 09:23:14 kato Exp $ + * $Id: sio.c,v 1.41 1997/10/27 11:00:31 kato Exp $ */ #include "opt_comconsole.h" @@ -789,9 +789,10 @@ static int card_intr(struct pccard_devinfo *devi) { struct com_s *com; + COM_LOCK(); com = com_addr(devi->isahd.id_unit); - if (com && !com_addr(devi->isahd.id_unit)->gone) + if (com && !com->gone) siointr1(com_addr(devi->isahd.id_unit)); COM_UNLOCK(); return(1); diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 2accce2..1a57098 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.40 1997/10/13 09:23:14 kato Exp $ + * $Id: sio.c,v 1.41 1997/10/27 11:00:31 kato Exp $ */ #include "opt_comconsole.h" @@ -789,9 +789,10 @@ static int card_intr(struct pccard_devinfo *devi) { struct com_s *com; + COM_LOCK(); com = com_addr(devi->isahd.id_unit); - if (com && !com_addr(devi->isahd.id_unit)->gone) + if (com && !com->gone) siointr1(com_addr(devi->isahd.id_unit)); COM_UNLOCK(); return(1); |