From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IDn6n-0002Lu-R0 for mharc-grub-devel@gnu.org; Wed, 25 Jul 2007 16:05:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDn6l-0002DX-HQ for grub-devel@gnu.org; Wed, 25 Jul 2007 16:05:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDn6k-0002Aj-Oa for grub-devel@gnu.org; Wed, 25 Jul 2007 16:05:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDn6k-0002AQ-MD for grub-devel@gnu.org; Wed, 25 Jul 2007 16:05:18 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDn6j-0006JU-HM; Wed, 25 Jul 2007 16:05:17 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IDn6f-000369-NR; Wed, 25 Jul 2007 22:05:14 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1IDn9R-0003a1-7L; Wed, 25 Jul 2007 22:08:05 +0200 Date: Wed, 25 Jul 2007 22:08:05 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070725200805.GA17393@aragorn> References: <1183565937.7721.41.camel@diesel> <20070710100444.GA5222@sahara.iti.upv.es> <20070710140823.GA8909@aragorn> <1184099550.9495.76.camel@basalt> <20070713220829.GA20231@aragorn> <20070724195946.GA3336@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Cc: Jordi Mallach Subject: Re: memory management issue (Re: another regression on Efika) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 20:05:19 -0000 On Wed, Jul 25, 2007 at 12:51:27PM -0500, Hollis Blanchard wrote: > > I was indeed trying to make it absolute. GRUB is linked at 0x10000, or > 64KB. Add in all the modules and you still are only using a couple > hundred KB. But if GRUB is linked at 0x10000, how come the firmware loads it since that's below the 0x19111e4 limit? (or am I missing some physical vs logical issue here?) > I don't remember *why* I was trying to make it absolute; I'm sure it > was to fix a problem (rather than I was bored). If we could get away > from this anachronistic Changelog crap, the commit message would have > told us exactly what we need to know. I pasted the ChangeLog entries in an earlier mail. Do you mean the CVS commit message might have more information? > I *think* it was because we have a relocation problem with OSes that > are linked at 4MB, which is the case with Xen (and I believe yaboot). > If GRUB is using that memory, we simply can't load anything there. > > I think we can add some somewhat-special-case logic that says if there > is nothing available below HEAP_LIMIT, claim something beginning as > low as we can. That reduces functionality on such platforms (as > described above), but there's little we can do about that unless > firmware is fixed. So the purpose of HEAP_LIMIT is to support code that is linked at fixed addresses? > My big question is this: why is Efika firmware saying that 0x19111e4 > (around 25MB) is the first available address? What is wrong with that? Is it general practice that all firmwares load at low addresses so that non-relocatable code can be linked at 4MB or such? > BTW, does Jordi have any details on this Mac problem? He said that after appliing the patch that makes heaplimit a relative address it still won't work. /memory/available: 00003000 0000d000 0002d000 007d3000 00848000 1f3b8000 I'm CCing him. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.