Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VtJRA-0007cp-A1 for mharc-grub-devel@gnu.org; Wed, 18 Dec 2013 10:53:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtJR3-0007UE-AF for grub-devel@gnu.org; Wed, 18 Dec 2013 10:53:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtJQw-0005Hp-8D for grub-devel@gnu.org; Wed, 18 Dec 2013 10:53:21 -0500 Received: from mail-qe0-f46.google.com ([209.85.128.46]:36931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtJQw-0005HN-5R for grub-devel@gnu.org; Wed, 18 Dec 2013 10:53:14 -0500 Received: by mail-qe0-f46.google.com with SMTP id a11so6548772qen.19 for ; Wed, 18 Dec 2013 07:53:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=cxzuji8pzIlwqppTx9+FNiU4bkqiJgdgOnrsVqyQo5Q=; b=bHa1K5lNBhNlIuxYZBfA1U9aKiCTNhciPkMbBO+2oLtZLcDiEJJTOT9mDKeV0TNGab hQjMhpjc62xI5btjyIMtrDMhyF2tz2/98FmWp/EvF+3jgoRCryzepraeRb9t491B+8Rg BukyrHgCzP3z5TZyY2oYfDpCQB/VQbJuK//qpCaFo49z7tGoEzvQyLnJjdIMgbdpGMbR FfVAKyOHjRBG4Ep+k5+mjRjdDWwyTo3kRxIrDC70ZKFsarE1GJPGurfqFZ4ZwNyfYLFe gSRwvBTt6olbbABZEq468AAp2OAXGfwTpOrp+x559BdZIqD9lpnIjfXMNCFXFTCeT6U3 rYKw== X-Gm-Message-State: ALoCoQn3X5JOzzoIY2PzBWQe88kRZrJZnP1DCmJJuSSpkC1pz0uXmMkiuUyIAypiGwJx1mu+GWmz X-Received: by 10.49.28.101 with SMTP id a5mr54981379qeh.70.1387381993360; Wed, 18 Dec 2013 07:53:13 -0800 (PST) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id p3sm1165120qax.1.2013.12.18.07.53.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 07:53:12 -0800 (PST) Date: Wed, 18 Dec 2013 16:53:28 +0100 From: Leif Lindholm To: Francesco Lavra Subject: Re: [PATCH] add fdt prerequisites for arm64 UEFI Linux loader Message-ID: <20131218155328.GB22356@rocoto.smurfnet.nu> References: <20131216135210.GU22356@rocoto.smurfnet.nu> <52B018F0.6030409@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52B018F0.6030409@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.46 Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 15:53:27 -0000 On Tue, Dec 17, 2013 at 10:27:12AM +0100, Francesco Lavra wrote: > > + grub_fdt_set_off_dt_strings (fdt, sizeof (*et)); > > + grub_fdt_set_off_dt_struct (fdt, sizeof (grub_fdt_header_t) + 16); > > I would write the offset as sizeof (et->header) + sizeof (et->empty_rsvmap) True. Will change. > > +struct grub_fdt_empty_tree { > > + grub_fdt_header_t header; > > + grub_uint64_t empty_rsvmap[2]; > > + struct { > > + grub_uint32_t prop_start; > > + grub_uint8_t name[1]; > > + grub_uint32_t prop_end; > > + grub_uint32_t node_end; > > + } empty_node; > > Field names don't reflect their actual meaning: I would rename them as: > > struct { > grub_uint32_t node_start; > grub_uint8_t name[1]; > grub_uint32_t node_end; > grub_uint32_t tree_end; > } empty_tree; Yeah, sorry - I wrote that while analyzing the empty tree as generated bu dtc, and since it worked I never revisited when I understood things better after debugging. Will fix. / Leif