summaryrefslogtreecommitdiffstats
path: root/sys/isa/pnpparse.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2000-06-25 09:19:59 +0000
committerdfr <dfr@FreeBSD.org>2000-06-25 09:19:59 +0000
commit8f25abcfb603ee923f6c115685797d47033034cd (patch)
tree226800128c0461ec63f5eedac198f456e51a5389 /sys/isa/pnpparse.c
parent398e95c5d2a73ce4a1a216fc23ede28349fcbeb3 (diff)
downloadFreeBSD-src-8f25abcfb603ee923f6c115685797d47033034cd.zip
FreeBSD-src-8f25abcfb603ee923f6c115685797d47033034cd.tar.gz
Don't record an irq mask if its empty - it confuses the resource allocator.
Diffstat (limited to 'sys/isa/pnpparse.c')
-rw-r--r--sys/isa/pnpparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/isa/pnpparse.c b/sys/isa/pnpparse.c
index 5ed1e82..c6c0869 100644
--- a/sys/isa/pnpparse.c
+++ b/sys/isa/pnpparse.c
@@ -96,8 +96,10 @@ pnp_parse_resources(device_t dev, u_char *resources, int len)
break;
case PNP_TAG_IRQ_FORMAT:
+ if (!I16(resinfo))
+ break;
if (bootverbose) {
- printf("%s: adding irq mask %#04x\n",
+ printf("%s: adding irq mask %#02x\n",
pnp_eisaformat(id),
I16(resinfo));
}
OpenPOWER on IntegriCloud