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>
This commit is contained in:
msmith 2000-11-07 00:03:33 +00:00
parent e64c38dcaa
commit ac9ec473d8

View File

@ -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, "