summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-03-17 08:11:13 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-03-17 08:11:13 +0000
commit47a16fa735755fe59828366fc2cded5dd5e2b2fe (patch)
tree1324dec55da516978ff74f37d4dc33028b952980 /sys/dev
parent0416f3710bc1dd9d239b62e3f3fd84828fc2a5de (diff)
Serial console trouble again...
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/com.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 9aaf899d440..ee2251969b0 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.32 1997/03/12 20:17:37 pefo Exp $ */
+/* $OpenBSD: com.c,v 1.33 1997/03/17 08:11:11 pefo Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*-
@@ -1433,9 +1433,7 @@ ohfudge:
*/
#include <dev/cons.h>
-#if NCOM_PICA
-#include <arc/arc/arctype.h>
- extern int cputype;
+#if NCOM_LOCALBUS
#undef CONADDR
extern int CONADDR;
#endif
@@ -1453,6 +1451,11 @@ comcnprobe(cp)
bus_space_handle_t ioh;
int found;
+ if(CONADDR == 0) {
+ cp->cn_pri = CN_DEAD;
+ return;
+ }
+
comconsiot = iot;
if (bus_space_map(iot, CONADDR, COM_NPORTS, 0, &ioh)) {
cp->cn_pri = CN_DEAD;