[PATCH v2 3/4] arm: set the relocated gd with gd->new_gd
Simon Glass
sjg at chromium.org
Thu Jan 30 03:17:54 CET 2020
On Wed, 22 Jan 2020 at 06:52, Patrick Delaunay <patrick.delaunay at st.com> 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 <patrick.delaunay at st.com>
> ---
>
> Changes in v2: None
>
> arch/arm/lib/crt0.S | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list