Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1Cl6Hk-0007L2-GG for mharc-grub-devel@gnu.org; Sun, 02 Jan 2005 09:00:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cl6Hi-0007KQ-AO for grub-devel@gnu.org; Sun, 02 Jan 2005 09:00:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cl6Hg-0007Jp-E9 for grub-devel@gnu.org; Sun, 02 Jan 2005 09:00:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cl6Hg-0007Jj-4k for grub-devel@gnu.org; Sun, 02 Jan 2005 09:00:40 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cl65g-0003D9-QI for grub-devel@gnu.org; Sun, 02 Jan 2005 08:48:16 -0500 Received: from vscan-ca.han.nl (mars.han.nl [145.74.129.116]) by mail-cn.han.nl (Postfix) with ESMTP id 56E649DB9 for ; Sun, 2 Jan 2005 14:48:16 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.51]) by vscan-ca.han.nl (mars.han.nl [145.74.129.116]) (amavisd-new, port 10024) with LMTP id 28905-01-78 for ; Sun, 2 Jan 2005 14:48:14 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 7AD418E81 for ; Sun, 2 Jan 2005 14:48:14 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 47B4AC067 for ; Sun, 2 Jan 2005 14:48:14 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20041203053646.GA22463@miracle> <6907960F-5C46-11D9-96F9-000A95A0560C@penguinppc.org> From: Marco Gerards Date: Sun, 02 Jan 2005 13:47:42 +0000 In-Reply-To: <6907960F-5C46-11D9-96F9-000A95A0560C@penguinppc.org> (Hollis Blanchard's message of "Sat, 1 Jan 2005 16:42:26 -0600") Message-ID: <87is6gq6wx.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 (2.2.0) at vscan-ca.han.nl Subject: Re: [ppc patch] grub-mkimage and module loading 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: Sun, 02 Jan 2005 14:00:43 -0000 Hollis Blanchard writes: > I am in favor of option 2. This approach could also be used for the > i386 port, but I guess there are other reasons we need to overwrite > fixed-location variables there, so maybe it wouldn't simplify > much. (I'm looking at the VARIABLE() macros in kern/i386/pc/startup.S) > So it would also be easy to move the existing grub_load_modules() into > arch-specific code, and use something like the above function for the > PPC port. I completely agree. Before the modules there should be a header and it can and IMHO it should be something that is portable. I can't come up with a reason why such header would make things harder instead of easier. It would be nice if we can get rid of `grub_get_end_addr'. The best thing we can do is renaming it to `grub_get_dl_modules_adrr' or something like that. It should be moved to a machine specific place. After doing that you can use that new function, parse the header and initialize the modules. Thanks, Marco