lkml.org 
[lkml]   [1999]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRE: [patch-2.3.33] memory size on proliant/1600
Hi Nathan and Linus,

> Note that this patch does NOT properly drop a region which, for instance,
> begins at 0x80000000 of length 512, because it's length is NOT zero (until
> we page align it.) Such regions may in fact exist as left-overs from ACPI
> or NVS regions.

ACPI regions would be of type E820_ACPI and thus skipped automatically.
However, you are right, on Intel platforms having less than a page of
memory is like having no memory at all, see patch below. Is this one
acceptable now?

--- linux/arch/i386/kernel/setup.c Wed Dec 8 07:01:40 1999
+++ work/arch/i386/kernel/setup.c Thu Dec 16 09:38:54 1999
@@ -594,7 +594,7 @@
for (i = 0; i < e820.nr_map; i++) {
unsigned long curr_pfn;
/* RAM? */
- if (e820.map[i].type != E820_RAM)
+ if (e820.map[i].type != E820_RAM ||
PFN_DOWN(e820.map[i].size) == 0)
continue;
curr_pfn = PFN_DOWN(e820.map[i].addr + e820.map[i].size);
if (curr_pfn > max_pfn)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.081 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site