Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jcRED-0004ZD-V1 for mharc-grub-devel@gnu.org; Sat, 23 May 2020 06:18:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcRED-0004Z5-3E for grub-devel@gnu.org; Sat, 23 May 2020 06:18:05 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:58146 helo=smtp.bawue.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcREB-0007zy-Sb for grub-devel@gnu.org; Sat, 23 May 2020 06:18:04 -0400 Received: from n-dimensional.de (p5b17584c.dip0.t-ipconnect.de [91.23.88.76]) (Authenticated sender: pdim@bawue.de) by smtp.bawue.net (Postfix) with ESMTPSA id BF55C2013D for ; Sat, 23 May 2020 12:17:25 +0200 (CEST) Date: Sat, 23 May 2020 12:17:24 +0200 From: Hans Ulrich Niedermann To: grub-devel@gnu.org Subject: Multiboot2 Header Tags: Unclear definition of type Message-ID: <20200523121725.5c7d355d@n-dimensional.de> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanner: SAV Dynamic Interface 2.6.0, Engine: 3.77.1, SAV: 5.75 (90A0ABD) on relay01.mx.bawue.net using milter-sssp 0.1.0 X-Virus-Scan: Found to be clean. Received-SPF: pass client-ip=193.7.176.67; envelope-from=hun@n-dimensional.de; helo=smtp.bawue.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/23 06:17:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 10:18:05 -0000 Quoting the Multiboot2 specification: > 3.1.3 General tag structure > --------------------------- > > Tags constitutes a buffer of structures following each other padded > when necessary in order for each tag to start at 8-bytes aligned > address. Tags are terminated by a tag of type '0' and size '8'. > Every structure has following format: > > +-------------------+ > u16 | type | > u16 | flags | > u32 | size | > +-------------------+ > > 'type' is divided into 2 parts. Lower contains an identifier of > contents of the rest of the tag. 'size' contains the size of tag > including header fields. If bit '0' of 'flags' (also known as > 'optional') is set, the bootloader may ignore this tag if it lacks > relevant support. Tags are terminated by a tag of type '0' and size > '8'. How is 'type' divided into two parts? The rest of the MB2 specification only defines some constants in the range of 0 to about 0x10 as values for 'type', but there is no mention of upper or lower parts at all. (And if there were, I would expect u8 fields for type and whatever the upper is supposed to be.) I suspect the phrasing with parts and lower is a remnant of a previous iteration, and 'type' is just meant to be a 16 bit integer constant. Does anyone have any insights into this? Uli