From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CaHGf-0006Mi-NM for mharc-grub-devel@gnu.org; Fri, 03 Dec 2004 12:30:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaHGd-0006M0-KW for grub-devel@gnu.org; Fri, 03 Dec 2004 12:30:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaHGc-0006LT-Kz for grub-devel@gnu.org; Fri, 03 Dec 2004 12:30:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaHGc-0006LQ-Gf for grub-devel@gnu.org; Fri, 03 Dec 2004 12:30:50 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CaH6w-0002Pq-CE for grub-devel@gnu.org; Fri, 03 Dec 2004 12:20:50 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 50AB99A0B for ; Fri, 3 Dec 2004 17:59:38 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 03488-02 for ; Fri, 3 Dec 2004 17:59:35 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 334509EB4 for ; Fri, 3 Dec 2004 17:59:34 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id E8B49C05F for ; Fri, 3 Dec 2004 17:59:33 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20041203053646.GA22463@miracle> <87mzwvlf4o.fsf@marco.marco-g.com> <95B8E280-453E-11D9-A999-000A95A0560C@penguinppc.org> <871xe7l5ve.fsf@marco.marco-g.com> From: Marco Gerards Date: Fri, 03 Dec 2004 16:58:26 +0000 In-Reply-To: (Hollis Blanchard's message of "Fri, 3 Dec 2004 10:45:58 -0600") Message-ID: <87llcfjp3h.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: [ppc patch] grub-mkimage 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: Fri, 03 Dec 2004 17:30:51 -0000 Hollis Blanchard writes: > On Dec 3, 2004, at 10:10 AM, Marco Gerards wrote: >> >>>> AS Hollis said, I'm working on the relocator for PPC at the moment. >>>> It is quite easy, but PPC_REL24 is a bit more complex. It is used >>>> for >>>> relative jumps. That means the module should be loaded close to >>>> grubof, which IMHO really sucks... >>> >>> 24-bit offsets give you a 16 MiB range, is that really a problem? >> >> The modules are loaded into the free memory of grubof. And grubof is >> loaded to where it is linked, IIRC. So I think that would cause >> problems. :) > > I don't understand this. By "free memory of grubof" do you mean the > heap? Right now, grubof is linked and loaded at 0x200000 (size is > ~100KiB right now), and uses memory from 0x4000 to 0x200000 as heap > space. That means the heap is well within the 16MiB 24-bit offset > range. Ok, cool. In that case there is no problem. I thought that you changed init.c so it adds all free memory. In that case it could cause problems if you have a few hundreds of megs of memory. Perhaps we just discussed this and the change was never made. Thanks, Marco