summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-08-08 09:54:23 +0000
committercgd <cgd@NetBSD.org>1993-08-08 09:54:23 +0000
commite5ea45d31294874ee9b6deef94fd48773ca827d9 (patch)
tree877a76b33ff00e541faa6bab45f8fe8aa8cd75ad /sys/dev
parent42f503232003a809007b0b23a67abcbaf2e58ebe (diff)
there are some devices out there which use... NO I/O PORTS!
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/isa.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c
index 1c90c04b469..ee88884d641 100644
--- a/sys/dev/isa/isa.c
+++ b/sys/dev/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.26 1993/07/11 14:03:54 mycroft Exp $
+ * $Id: isa.c,v 1.27 1993/08/08 09:54:23 cgd Exp $
*/
/*
@@ -157,11 +157,13 @@ config_isadev(isdp, mp)
*/
if (isdp->id_alive) {
printf("%s%d", dp->name, isdp->id_unit);
- printf(" at 0x%x", isdp->id_iobase);
- if ((isdp->id_iobase + isdp->id_alive - 1) !=
- isdp->id_iobase)
- printf("-0x%x",
- isdp->id_iobase + isdp->id_alive - 1);
+ if (isdp->id_iobase) {
+ printf(" at 0x%x", isdp->id_iobase);
+ if ((isdp->id_iobase + isdp->id_alive - 1) !=
+ isdp->id_iobase)
+ printf("-0x%x", isdp->id_iobase +
+ isdp->id_alive - 1);
+ }
if (isdp->id_irq != 0)
printf(" irq %d", ffs(isdp->id_irq)-1);
if (isdp->id_drq != -1)