Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1El7KF-0006FP-BC for mharc-grub-devel@gnu.org; Sat, 10 Dec 2005 11:11:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1El7KB-0006F1-6b for grub-devel@gnu.org; Sat, 10 Dec 2005 11:11:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1El7KA-0006El-Bn for grub-devel@gnu.org; Sat, 10 Dec 2005 11:11:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1El7K9-0006Dr-Fx for grub-devel@gnu.org; Sat, 10 Dec 2005 11:11:49 -0500 Received: from [209.86.89.65] (helo=elasmtp-kukur.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1El7LX-0005LW-Nm for grub-devel@gnu.org; Sat, 10 Dec 2005 11:13:15 -0500 Received: from [63.246.184.80] (helo=[192.168.0.100]) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1El7Jj-0007Jr-7k for grub-devel@gnu.org; Sat, 10 Dec 2005 11:11:23 -0500 Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <87lkytnih3.fsf@xs4all.nl> References: <87lkytnih3.fsf@xs4all.nl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0cb01399208c02264ffcc84d96bb80cf@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sat, 10 Dec 2005 10:11:23 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79999c39a3fa00e72ba6fe4e50fa69f123350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 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:11:51 -0000 On Dec 10, 2005, at 8:18 AM, Marco Gerards wrote: > 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. 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. 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... >> (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. I had convinced myself that something wasn't getting mapped. Actually, I bet I know what it was... "claim" on Old World firmware didn't work properly, and you did need to map it explicitly. BootX has more complete code to handle this case, and we should take that same approach when we worry about Old World. >> 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? 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... > 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 In a word: yes. -Hollis