summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-11-11 15:22:01 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-11-11 15:22:01 +0000
commit3679e89c696b4eec001c44f0df43f10b2db944f7 (patch)
treee6e9bbd0650b1b85714979d530ab94bab48b4ca7 /sys/dev
parentc48f07e8ed20b308d2d9379e81ed1bbefae7b619 (diff)
fix kgdb compilation; input and ok miod@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/com.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 36599ede3cf..2afb17b734a 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.106 2005/09/26 22:32:06 miod Exp $ */
+/* $OpenBSD: com.c,v 1.107 2005/11/11 15:22:00 fgsch Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -1488,9 +1488,11 @@ com_kgdb_attach(iot, iobase, rate, frequency, cflag)
int rate, frequency;
tcflag_t cflag;
{
+#ifdef COM_CONSOLE
if (iot == comconsiot && iobase == comconsaddr) {
return (EBUSY); /* cannot share with console */
}
+#endif
com_kgdb_iot = iot;
com_kgdb_addr = iobase;