Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GnnlF-0005HY-E5 for mharc-grub-devel@gnu.org; Fri, 24 Nov 2006 21:59:25 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GnnlE-0005H9-E6 for grub-devel@gnu.org; Fri, 24 Nov 2006 21:59:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GnnlB-0005FY-RH for grub-devel@gnu.org; Fri, 24 Nov 2006 21:59:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnnlB-0005FM-DE for grub-devel@gnu.org; Fri, 24 Nov 2006 21:59:21 -0500 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GnnlB-0007OS-8g for grub-devel@gnu.org; Fri, 24 Nov 2006 21:59:21 -0500 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id B94953C79B06D for ; Sat, 25 Nov 2006 06:48:49 +0100 (CET) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 7DF8C3C79B06C for ; Sat, 25 Nov 2006 06:48:49 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sat, 25 Nov 2006 03:59:19 +0100 User-Agent: KMail/1.8.2 References: <1163545104.12931.49.camel@basalt> <1163626760.8873.128.camel@basalt> <1163633935.455ba50fe2f56@imp8-g19.free.fr> In-Reply-To: <1163633935.455ba50fe2f56@imp8-g19.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611250359.19398.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.039564, version=0.17.2 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 02:59:24 -0000 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. Okuji