summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-10-25 00:08:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-10-25 00:08:45 +0000
commit9348ce353fb99f074b98923385c16b4cadce703b (patch)
tree9bed24bd3f38ff22d82bf6e8f0db4bff75ca46f5 /sys/arch
parent7e2c6698acd28d0b707bb452bcd5f2ae7deda867 (diff)
same fix as for com_gsc wrt unmapped console ports
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/dev/com_dino.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/com_dino.c b/sys/arch/hppa/dev/com_dino.c
index a6f3e4054d9..813ba2e6337 100644
--- a/sys/arch/hppa/dev/com_dino.c
+++ b/sys/arch/hppa/dev/com_dino.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_dino.c,v 1.2 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: com_dino.c,v 1.3 2004/10/25 00:08:44 mickey Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff
@@ -92,7 +92,7 @@ com_dino_attach(parent, self, aux)
sc->sc_iot = ca->ca_iot;
sc->sc_iobase = (bus_addr_t)ca->ca_hpa + IOMOD_DEVOFFSET;
- 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)) {