From 894b85b150fe9ced10d87abb86f78baac3c8b2fb Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Fri, 12 Sep 2003 20:04:29 +0000 Subject: [PATCH] Handle ISA devices in OF_decode_addr(), with the same code that is used in the EBus case. --- sys/sparc64/sparc64/ofw_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sparc64/sparc64/ofw_machdep.c b/sys/sparc64/sparc64/ofw_machdep.c index 404eeaf6b1b3..5d739ecf02d0 100644 --- a/sys/sparc64/sparc64/ofw_machdep.c +++ b/sys/sparc64/sparc64/ofw_machdep.c @@ -81,7 +81,7 @@ OF_decode_addr(phandle_t node, int *space, bus_addr_t *addr) if (OF_getprop(bus, "name", name, sizeof(name)) == -1) return (ENXIO); name[sizeof(name) - 1] = '\0'; - if (strcmp(name, "ebus") == 0) { + if (strcmp(name, "ebus") == 0 || strcmp(name, "isa") == 0) { if (OF_getprop(node, "reg", ®.isa, sizeof(reg.isa)) == -1) return (ENXIO); rsz = OF_getprop(bus, "ranges", range.isa, sizeof(range.isa));