Messages in this thread Patch in this message | | | Subject | Re: [BUG][PATCH] BIOS reserved regions block iomem registration | From | Thayne Harbaugh <> | Date | 22 Oct 2003 13:56:54 -0600 |
| |
> 1) Don't mark the BIOS reserved regions. Some BIOSes don't mark these > and the kernel works fine. This is a trivial patch of removing the > "reserved" line in setup.c:register_memory(). See > remove_reserved.patch.
Er, the previous remove_reserved.patch wouldn't work. This should be more correct.
-- Thayne Harbaugh Linux Networx --- linux-2.4.20/arch/i386/kernel/setup.c 2002-11-28 16:53:09.000000000 -0700 +++ linux-2.4.20-bs/arch/i386/kernel/setup.c 2003-10-22 14:25:48.000000000 -0600 @@ -1042,12 +1042,14 @@ struct resource *res; if (e820.map[i].addr + e820.map[i].size > 0x100000000ULL) continue; + if (e820.map[i].type == E820_RESERVED) + continue; res = alloc_bootmem_low(sizeof(struct resource)); switch (e820.map[i].type) { case E820_RAM: res->name = "System RAM"; break; case E820_ACPI: res->name = "ACPI Tables"; break; case E820_NVS: res->name = "ACPI Non-volatile Storage"; break; - default: res->name = "reserved"; + default: res->name = "unknown"; } res->start = e820.map[i].addr; res->end = res->start + e820.map[i].size - 1;[unhandled content-type:application/pgp-signature]
| |