Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GnoKQ-0007xq-Le for mharc-grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GnoKP-0007xa-Kw for grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GnoKN-0007xE-Iu for grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnoKN-0007xB-De for grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:43 -0500 Received: from [207.69.195.69] (helo=pop-savannah.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GnoKN-000551-9p for grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:43 -0500 Received: from user-0vvdf2d.cable.mindspring.com ([63.246.188.77] helo=diesel.unsanctioned.org) by pop-savannah.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1GnoKM-00047f-00 for grub-devel@gnu.org; Fri, 24 Nov 2006 22:35:42 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <200611250359.19398.okuji@enbug.org> References: <1163545104.12931.49.camel@basalt> <1163626760.8873.128.camel@basalt> <1163633935.455ba50fe2f56@imp8-g19.free.fr> <200611250359.19398.okuji@enbug.org> Content-Type: text/plain Date: Fri, 24 Nov 2006 21:35:41 -0600 Message-Id: <1164425741.3827.23.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit 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: Sat, 25 Nov 2006 03:35:45 -0000 On Sat, 2006-11-25 at 03:59 +0100, Yoshinori K. Okuji wrote: > On Thursday 16 November 2006 00:38, tgingold@free.fr wrote: > > > 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 != MULTIBOOT_TAG_END) > > > process_tag(tag); > > > > I really like such tags structure. > > Tags structure are *very* flexible: can be easily extended without breaking > > backward compatibility. > > I don't like it very much. My first draft was exactly like this. But, after > some discussion in the IRC, I decided to revert my idea, because specifying > so many parameters by hand really sucks. It is too error-prone. Bits are less error-prone? How about this: MB_START_TAGS() MB_LOADADDR(0x1234) MB_ENTRYADDR(0x1234) MB_END_TAGS() -Hollis