RE: (corrected) Re: [patch-2.3.33] memory size on proliant/1600

nathan.zook@amd.com
Wed, 15 Dec 1999 14:08:13 -0600


Acually, you probably want to grab E820_ACPI memory as well. Not that this
is the only problem I have with this section of the code...

Nathan

-----Original Message-----
From: Tigran Aivazian [mailto:tigran@sco.COM]
Sent: Wednesday, December 15, 1999 10:24 AM
To: torvalds@transmeta.com
Cc: linux-kernel@vger.rutgers.edu
Subject: (corrected) Re: [patch-2.3.33] memory size on proliant/1600

last minute correction (forgot there are machines with more than 2G, so if
we cast the size to (int) we may be skipping some very large areas...)

> On Wed, 15 Dec 1999, Tigran Aivazian wrote:
> > --- linux/arch/i386/kernel/setup.c Wed Dec 8 07:01:40 1999
> > +++ ta/arch/i386/kernel/setup.c Wed Dec 15 15:41:06 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 || 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/

-
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/