From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 29 Jan 2020 19:17:26 -0700 Subject: [PATCH 2/3] arm: set the relocated gd with gd->new_gd In-Reply-To: <20200109171123.16348-3-patrick.delaunay@st.com> References: <20200109171123.16348-1-patrick.delaunay@st.com> <20200109171123.16348-3-patrick.delaunay@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 9 Jan 2020 at 10:11, Patrick Delaunay wrote: > > Simplify the arm relocation behavior and get gd directly form new_gd, > as it is already done in crt0_64.S: > > ldr x18, [x18, #GD_NEW_GD] /* x18 <- gd->new_gd */ > > This patch avoid assumption on new GD location (new GD is below bd - > with #GD_SIZE offset). > > Signed-off-by: Patrick Delaunay > --- > > arch/arm/lib/crt0.S | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Simon Glass