lkml.org 
[lkml]   [2003]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [BUG][PATCH] BIOS reserved regions block iomem registration
From
Date

> 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]
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.048 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site