summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2002-01-23 06:45:33 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2002-01-23 06:45:33 +0000
commite525ccf92c0dcb24bc575d25f7ac0f8124e8f152 (patch)
treef80791bf6bf5fcbfabc08f3e79be6f3ea9092cf8 /sys/dev/ic
parenteca0ddf713735e094bb5e0c51c44259fd7b976e3 (diff)
allow this to compile with KGDB
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 793c1fcdd41..bcf130b4b64 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.76 2001/10/05 21:01:10 mickey Exp $ */
+/* $OpenBSD: com.c,v 1.77 2002/01/23 06:45:32 ericj Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -334,7 +334,7 @@ com_attach_subr(sc)
* the kgdb device, it has exclusive use.
*/
- if (iot == com_kgdb_iot && iobase == com_kgdb_addr &&
+ if (iot == com_kgdb_iot && sc->sc_iobase == com_kgdb_addr &&
!ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
printf("%s: kgdb\n", sc->sc_dev.dv_xname);
SET(sc->sc_hwflags, COM_HW_KGDB);