From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHdce-0003cy-Tp for mharc-grub-devel@gnu.org; Wed, 23 Jan 2008 06:18:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHdcc-0003cm-Q4 for grub-devel@gnu.org; Wed, 23 Jan 2008 06:18:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHdcb-0003cJ-8S for grub-devel@gnu.org; Wed, 23 Jan 2008 06:18:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHdcb-0003cG-6I for grub-devel@gnu.org; Wed, 23 Jan 2008 06:18:21 -0500 Received: from smtp-vbr17.xs4all.nl ([194.109.24.37]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHdca-0004py-Uy for grub-devel@gnu.org; Wed, 23 Jan 2008 06:18:21 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0NBIJ7i061265 for ; Wed, 23 Jan 2008 12:18:20 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080121013836.GA8887@thorin> <87lk6gsydj.fsf@xs4all.nl> <20080123095758.GB1159@thorin> <87hch4svd0.fsf@xs4all.nl> <20080123102517.GA4127@thorin> <878x2gsu6f.fsf@xs4all.nl> <20080123110531.GB25594@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 23 Jan 2008 12:19:36 +0100 In-Reply-To: <20080123110531.GB25594@thorin> (Robert Millan's message of "Wed, 23 Jan 2008 12:05:31 +0100") Message-ID: <87odbcrdpz.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] enable multiboot2 loader on i386-ieee1275 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: Wed, 23 Jan 2008 11:18:23 -0000 Robert Millan writes: > On Wed, Jan 23, 2008 at 11:38:48AM +0100, Marco Gerards wrote: >> >> > Though I don't see why not do it. The boot abi is already compatible on >> >> > PowerPC: >> >> > >> >> > http://grub.enbug.org/MultibootDraft#head-198f9346038a3782a8263de281dd9cf2eb2759a8 >> >> >> >> Do you suggest to change the interface for x86? >> > >> > Yes. Multiboot2 is still a draft and not widely used (not even in comparison to >> > Multiboot1). I don't think it's a big problem to change this. >> >> We could use ebx or so. Or will this cause new problems? > > Well, EBX itself is being used for the MBI, so not a good choice ;-) > > About using a free register (I think ECX and EDX aren't used), this might > cause the inconvenience that you might need to reestructure startup code, in > case it is laid out in a way that already makes use of that register. You can move it to EAX in case you do not care about OFW. In that case you get the old situation back. In case of OFW the old situation never worked :-) > I don't think this is the case for the average OFW application that is written > in C and just has a few lines of asm in _start. Right. And like I said, other kernels can just move ECX to EAX and the old code can be used. -- Marco