Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GkTtO-0007Ed-7t for mharc-grub-devel@gnu.org; Wed, 15 Nov 2006 18:10:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkTtL-0007AK-Sw for grub-devel@gnu.org; Wed, 15 Nov 2006 18:10:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkTtK-00078F-N2 for grub-devel@gnu.org; Wed, 15 Nov 2006 18:10:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkTtK-00077w-Gm for grub-devel@gnu.org; Wed, 15 Nov 2006 18:10:02 -0500 Received: from [212.27.42.29] (helo=smtp3-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkTtK-0008Tx-Cc for grub-devel@gnu.org; Wed, 15 Nov 2006 18:10:02 -0500 Received: from imp8-g19.free.fr (imp8-g19.free.fr [212.27.42.39]) by smtp3-g19.free.fr (Postfix) with ESMTP id DE5504A2A4 for ; Thu, 16 Nov 2006 00:10:01 +0100 (CET) Received: by imp8-g19.free.fr (Postfix, from userid 33) id F3BCF92B3; Thu, 16 Nov 2006 00:38:55 +0100 (CET) Received: from boi78-1-82-232-198-173.fbx.proxad.net (boi78-1-82-232-198-173.fbx.proxad.net [82.232.198.173]) by imp8-g19.free.fr (IMP) with HTTP for ; Thu, 16 Nov 2006 00:38:55 +0100 Message-ID: <1163633935.455ba50fe2f56@imp8-g19.free.fr> Date: Thu, 16 Nov 2006 00:38:55 +0100 From: tgingold@free.fr To: The development of GRUB 2 References: <1163545104.12931.49.camel@basalt> <87psbphyu3.fsf@night.trouble.net> <1163616145.8873.35.camel@basalt> <200611152142.16440.okuji@enbug.org> <1163626760.8873.128.camel@basalt> In-Reply-To: <1163626760.8873.128.camel@basalt> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 82.232.198.173 Content-Transfer-Encoding: quoted-printable Subject: Re: multiboot2: make multiboot header optional 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, 15 Nov 2006 23:10:04 -0000 Quoting Hollis Blanchard : > On Wed, 2006-11-15 at 22:42 +0200, Yoshinori K. Okuji wrote: > > On Wednesday 15 November 2006 19:42, Hollis Blanchard wrote: [...] > > > I don't think it would be a big deal to drop a.out as well; I don't= know > > > of any modern OS that uses these, and anyways kernel builds are spe= cial. > > > However (and I don't know how reasonable this is), Mac OS X's toolc= hain > > > will build only Mach-O binaries, so one would be unable to build a > > > kernel that GRUB could load. We could require a Mach-O loader in th= at > > > case, but I will admit that the "a.out hack" multiboot header field= s > > > simplify this problem. > > > > Never drop the a.out kludge. This flexibility is one of the advantage= s in > > Multiboot. Note that GRUB itself uses this feature. > > I still would like an improvement in the kernel->GRUB communication. > What about reusing the tags structure? For example: > > multiboot_header: > .long MAGIC > .long MULTIBOOT_TAG_START [...] > .long MULTIBOOT_TAG_LOADADDR ; .long 12 ; .long _start > .long MULTIBOOT_TAG_ENTRYADDR ; .long 12 ; .long main > .long MULTIBOOT_TAG_END ; .long 8 > etc? > > A cpp macro or two could make that a little more convenient. > > The fact that the START tag requires the number of tags and number of > bytes is inconvenient here. Do we really need that? Why not just: > > while (tag->key !=3D MULTIBOOT_TAG_END) > process_tag(tag); I really like such tags structure. Tags structure are *very* flexible: can be easily extended without breaki= ng backward compatibility. Tristan.