summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-19 17:50:31 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-19 17:50:31 +0000
commit502ee96f542cf1d76db358aedba6ea0b2db13094 (patch)
tree15687df3b023bf8f68f24ed889ab7f1ae1d1c888 /sys/arch
parent12ee1e5174fcdaebe7d83fe8123f6ed750a9e711 (diff)
do not blindly assume console has been mapped
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/gsc/com_gsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/com_gsc.c b/sys/arch/hppa/gsc/com_gsc.c
index 604f9842782..2bd9fa05198 100644
--- a/sys/arch/hppa/gsc/com_gsc.c
+++ b/sys/arch/hppa/gsc/com_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_gsc.c,v 1.19 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: com_gsc.c,v 1.20 2004/09/19 17:50:30 mickey Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -88,7 +88,7 @@ com_gsc_attach(parent, self, aux)
else
rj16++;
- if (sc->sc_iobase == CONADDR)
+ if (sc->sc_iobase == CONADDR && comconsioh)
sc->sc_ioh = comconsioh;
else if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS,
0, &sc->sc_ioh)) {