Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cmNM5-0004hV-4J for mharc-grub-devel@gnu.org; Fri, 10 Mar 2017 11:25:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNM2-0004gH-U6 for grub-devel@gnu.org; Fri, 10 Mar 2017 11:25:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmNLz-0003MX-OF for grub-devel@gnu.org; Fri, 10 Mar 2017 11:25:22 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:44533) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmNLz-0003Lj-G4 for grub-devel@gnu.org; Fri, 10 Mar 2017 11:25:19 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v2AGPEqd007219 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Mar 2017 16:25:14 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v2AGPDHu021420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Mar 2017 16:25:13 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v2AGPD9Y025675; Fri, 10 Mar 2017 16:25:13 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Mar 2017 08:25:12 -0800 Received: by char.us.oracle.com (Postfix, from userid 1000) id 138606A09E7; Fri, 10 Mar 2017 11:25:12 -0500 (EST) Date: Fri, 10 Mar 2017 11:25:11 -0500 From: Konrad Rzeszutek Wilk To: Daniel Kiper Cc: grub-devel@gnu.org, arvidjaar@gmail.com, phcoder@gmail.com, safayet.ahmed@ge.com Subject: Re: [PATCH] multiboot2: Fix alignment of header tags Message-ID: <20170310162511.GA16876@char.us.oracle.com> References: <1489162438-6456-1-git-send-email-daniel.kiper@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489162438-6456-1-git-send-email-daniel.kiper@oracle.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 16:25:24 -0000 On Fri, Mar 10, 2017 at 05:13:58PM +0100, Daniel Kiper wrote: > Header tags have to be 8-bytes aligned. So, fix it. > Additionally, mention header closing tag in the spec. > > Signed-off-by: Daniel Kiper Reviewed-by: Konrad Rzeszutek Wilk > --- > doc/multiboot.texi | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/doc/multiboot.texi b/doc/multiboot.texi > index a9c3f16..2e2d7e7 100644 > --- a/doc/multiboot.texi > +++ b/doc/multiboot.texi > @@ -408,8 +408,9 @@ and @samp{header_length}), must have a 32-bit unsigned sum of zero. > > @node Header tags > @subsection General tag structure > -Tags constitutes a buffer of structures following each other padded on @samp{u32} size. > -Every structure has following format: > +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 @samp{0} and size @samp{8}. Every structure has following format: > > @example > @group > -- > 1.7.10.4 >