Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1El7tF-0003I5-CY for mharc-grub-devel@gnu.org; Sat, 10 Dec 2005 11:48:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1El7tD-0003Hp-Cn for grub-devel@gnu.org; Sat, 10 Dec 2005 11:48:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1El7tA-0003HF-6r for grub-devel@gnu.org; Sat, 10 Dec 2005 11:48:02 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1El7t9-0003HC-R3 for grub-devel@gnu.org; Sat, 10 Dec 2005 11:47:59 -0500 Received: from [194.109.24.26] (helo=smtp-vbr6.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1El7uY-00050Y-HL for grub-devel@gnu.org; Sat, 10 Dec 2005 11:49:26 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr6.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBAGlX2b009947 for ; Sat, 10 Dec 2005 17:47:33 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <87lkytnih3.fsf@xs4all.nl> <0cb01399208c02264ffcc84d96bb80cf@penguinppc.org> From: Marco Gerards Date: Sat, 10 Dec 2005 17:47:37 +0100 In-Reply-To: <0cb01399208c02264ffcc84d96bb80cf@penguinppc.org> (Hollis Blanchard's message of "Sat, 10 Dec 2005 10:11:23 -0600") Message-ID: <87pso4nbkm.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: PPC update 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: Sat, 10 Dec 2005 16:48:04 -0000 Hollis Blanchard writes: >> Eight. And when in doubt, better flush too much. > > Eight lines? > http://cvs.savannah.gnu.org/viewcvs/grub/grub2/kern/powerpc/ > cache.S.diff?tr1=1.1&tr2=1.2&r1=text&r2=text says it's two. s/Eight/Right/ :-) > My first approach was just to flush one extra line, but that failed > (DEFAULT CATCH) when accessing unmapped memory (i.e. past the end of > memory which had been claimed). The proper fix was simple anyways. > >>> I found the failure by relinking GRUB above 96MB; I guess the lower >>> addresses were well-trafficked enough, at least as far as cacheline >>> congruence classes go. Why did I change the link address? Open >>> Firmware has a "claim" method in which a client program (that's us) >>> reserves memory for exclusive use. BootX, the Mac OS X bootloader, >>> claims almost every byte of memory up to 96MB, and it fails if GRUB >>> has claimed memory in the way. >> >> Right, but you haven't made this change in CVS, I assume? > > Of course not. You can see for yourself... Yeah, but it is quite hard to look where I am now... :-/ >> Yeah, I'll let you know. My guess is that it will take a week. Can't >> you just copy the file to the wrapped HFS fs in the meanwhile, or is >> it too small? > > I have copied BootX there. The mach_kernel is 4MB though, which is too > large for my HFS partition, and I assume the root filesystem detection > code would get confused anyways... Perhaps you can adjust some variable in OF that points to the device you loaded it from or so... Anyways, that is just a random thought while I have no clue how your code works. >> Can you describe your biarch change and how that affects the AMD64 >> port? Can I still crosscompile like I was used to? > > http://cvs.savannah.gnu.org/viewcvs/grub/grub2/configure.ac.diff? > tr1=1.17&tr2=1.18&r1=text&r2=text Heh, that's code and not a description. ;) I was wondering why it was required, some background, etc. -- Marco