aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/isa
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2002-04-02 17:23:45 +0000
committerThomas Moestl <tmm@FreeBSD.org>2002-04-02 17:23:45 +0000
commit3d6d9df323c775b9c50d3dabc184bd62752d23b5 (patch)
tree07023a80a0241805e937337bc6272700d9ba660e /sys/sparc64/isa
parent80cc42da6ba52981f61a7b9cebe67c15d7d59e71 (diff)
downloadsrc-3d6d9df323c775b9c50d3dabc184bd62752d23b5.tar.gz
src-3d6d9df323c775b9c50d3dabc184bd62752d23b5.zip
Remove a debugging panic that was triggered when a resource that was out
of range was tried to be allocated; just return failure instead.
Notes
Notes: svn path=/head/; revision=93681
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 37fa3d492488..0536db7b206f 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);