From 847166ca5aa7c387d655b4c700e8730223b698b6 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Tue, 7 Nov 2000 00:03:33 +0000 Subject: [PATCH] Ignore resources with a size of 0, as these are disabled (and we don't deal with them properly elsewhere). Submitted by: Masayuki FUKUI --- sys/isa/pnpparse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/isa/pnpparse.c b/sys/isa/pnpparse.c index dfb5c33fd25..8c667166583 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, "