summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/isa
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2002-04-02 17:23:45 +0000
committertmm <tmm@FreeBSD.org>2002-04-02 17:23:45 +0000
commit2d73e086605f9b8f2758d8fe0a9ecf0681fd1b90 (patch)
tree07023a80a0241805e937337bc6272700d9ba660e /sys/sparc64/isa
parent85f5ae7a3be5ba48dbb5746bdd55b5f3c6c91128 (diff)
downloadFreeBSD-src-2d73e086605f9b8f2758d8fe0a9ecf0681fd1b90.zip
FreeBSD-src-2d73e086605f9b8f2758d8fe0a9ecf0681fd1b90.tar.gz
Remove a debugging panic that was triggered when a resource that was out
of range was tried to be allocated; just return failure instead.
Diffstat (limited to 'sys/sparc64/isa')
-rw-r--r--sys/sparc64/isa/isa.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c
index 37fa3d4..0536db7 100644
--- a/sys/sparc64/isa/isa.c
+++ b/sys/sparc64/isa/isa.c
@@ -283,11 +283,8 @@ isa_alloc_resource(device_t bus, device_t child, int type, int *rid,
start += base;
end += base;
if (!INRANGE(start, base, limit) ||
- !INRANGE(end, base, limit)) {
- panic("isa_alloc_resource: resource list entry "
- "out of bus range (0x%lx - 0x%lx not in "
- "0x%lx - 0x%lx)", start, end, base, limit);
- }
+ !INRANGE(end, base, limit))
+ return (NULL);
break;
case SYS_RES_IRQ:
start = end = isa_route_intr_res(bus, start, end);
OpenPOWER on IntegriCloud