Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1El5Yx-0004vl-TW for mharc-grub-devel@gnu.org; Sat, 10 Dec 2005 09:19:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1El5Yw-0004v6-5H for grub-devel@gnu.org; Sat, 10 Dec 2005 09:18:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1El5Yu-0004uQ-7H for grub-devel@gnu.org; Sat, 10 Dec 2005 09:18:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1El5Yt-0004uL-Lk for grub-devel@gnu.org; Sat, 10 Dec 2005 09:18:55 -0500 Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1El5aH-0006nP-4i for grub-devel@gnu.org; Sat, 10 Dec 2005 09:20:21 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr5.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBAEIT6G071193 for ; Sat, 10 Dec 2005 15:18:29 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: From: Marco Gerards Date: Sat, 10 Dec 2005 15:18:32 +0100 In-Reply-To: (Hollis Blanchard's message of "Fri, 9 Dec 2005 23:41:43 -0600") Message-ID: <87lkytnih3.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 14:18:58 -0000 Hollis Blanchard writes: > I just fixed an embarassing bug in kern/powerpc/cache.S, where if > `address' is not cacheline-aligned (which is a common and reasonable > thing), it would fail to flush/invalidate the last cacheline. (It > takes a little thinking, but draw a picture and think about the loop > termination condition and you'll see why.) Vincent, I believe > kern/sparc64/cache.S has the same problem... the fix is only two > lines, so finding a failing testcase is the only hard part. :) Eight. And when in doubt, better flush too much. > 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? > (BTW, I commented out the "map" part of grub_claimmap(), and > everything works fine without it. If we can get a little more testing > with that, I will remove it entirely.) Sure. I don't even remember why we needed it in the first place. > Once I fixed the cache flushing bug, I was able to execute BootX > further than before. It displayed an icon indicating it could not find > OS X's kernel, which is expected because I had to copy BootX to a > separate partition with a supported filesystem to load it at all. Nice work! > So Marco, any time you're ready with that HFS+ driver... ;) In the > meantime I will continue to try to find a way to load BootX without > linking at 96MB. It would be nice not to require 96MB of RAM to run > GRUB... 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? Can you describe your biarch change and how that affects the AMD64 port? Can I still crosscompile like I was used to? -- Marco