Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EkxUs-0003Gn-Cm for mharc-grub-devel@gnu.org; Sat, 10 Dec 2005 00:42:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkxUq-0003GV-F4 for grub-devel@gnu.org; Sat, 10 Dec 2005 00:42:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkxUn-0003GH-F7 for grub-devel@gnu.org; Sat, 10 Dec 2005 00:42:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkxUn-0003GE-A5 for grub-devel@gnu.org; Sat, 10 Dec 2005 00:42:09 -0500 Received: from [209.86.89.61] (helo=smtpauth01.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkxW7-0006AY-33 for grub-devel@gnu.org; Sat, 10 Dec 2005 00:43:31 -0500 Received: from [63.246.184.80] (helo=[192.168.0.100]) by smtpauth01.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EkxUO-0001JP-Qx for grub-devel@gnu.org; Sat, 10 Dec 2005 00:41:44 -0500 Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: The development of GRUB 2 From: Hollis Blanchard Date: Fri, 9 Dec 2005 23:41:43 -0600 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec7943727a44fe435017134d3fad855d44dd350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: 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 05:42:12 -0000 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. :) 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. (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.) 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. 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... -Hollis