diff options
author | msmith <msmith@FreeBSD.org> | 2000-11-07 00:03:33 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-11-07 00:03:33 +0000 |
commit | 02faec692b4babea3ec77689da3c91180ddf98d0 (patch) | |
tree | c7f3be09ff4184ee76a90c8d43f25d5f66ba6ebc /sys/isa | |
parent | a1a6483d6a8635cfaa8b93bb30d8d29c3e79754e (diff) | |
download | FreeBSD-src-02faec692b4babea3ec77689da3c91180ddf98d0.zip FreeBSD-src-02faec692b4babea3ec77689da3c91180ddf98d0.tar.gz |
Ignore resources with a size of 0, as these are disabled (and we don't
deal with them properly elsewhere).
Submitted by: Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/pnpparse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/isa/pnpparse.c b/sys/isa/pnpparse.c index dfb5c33..8c66716 100644 --- a/sys/isa/pnpparse.c +++ b/sys/isa/pnpparse.c @@ -303,6 +303,13 @@ pnp_parse_resources(device_t dev, u_char *resources, int len, u_int32_t vendor_i break; case PNP_TAG_MEMORY32_RANGE: + if (I32(resinfo + 13) == 0) { + if (bootverbose) { + printf("%s: skipping empty range\n", + pnp_eisaformat(id)); + } + continue; + } if (bootverbose) { printf("%s: adding memory32 range " "%#x-%#x, size=%#x, " |