[Top] [All Lists]

Re: sparsemem support for mips with highmem

To: Dave Hansen <>
Subject: Re: sparsemem support for mips with highmem
From: C Michael Sundius <>
Date: Thu, 14 Aug 2008 16:16:28 -0700
Authentication-results: sj-dkim-2;; dkim=neutral
Cc:,,, Andy Whitcroft <>
In-reply-to: <1218753308.23641.56.camel@nimitz>
Original-recipient: rfc822;
References: <> <1218753308.23641.56.camel@nimitz>
User-agent: Thunderbird (X11/20080501)

+               if ([i].type != BOOT_MEM_RAM)
+                       continue;
+               start = PFN_UP([i].addr);
+               end   = PFN_DOWN([i].addr
+                                   +[i].size);
+               memory_present(0, start, end);
+       }

Is that aligning really necessary?  I'm just curious because if it is,
it would probably be good to stick it inside memory_present().

yaknow, there are several loops in this file that look through this boot_mem_ map structure. they all have the same basic form (but of course are slightly different). Anyhow, I just cut and pasted. I'm wondering if the MIPS folks have comment on how best to make this change and possibly clean up this file. I'm happy to do it, but think I'd like some
guidance on this... anyone?

I'll fix and resubmit. sorry for posting this to the two lists, but I wasn't sure if I should put it on the linux-mm list or the linux-mips list... I'll keep the distribution unless I
her complaints.


<Prev in Thread] Current Thread [Next in Thread>