]> git.baikalelectronics.ru Git - uboot.git/commit
arm: set the relocated gd with gd->new_gd
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 10 Mar 2020 09:15:04 +0000 (10:15 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 03:06:54 +0000 (23:06 -0400)
commit3342eef36c4ea23c6d6b6cc3f9c0bc5d010b7322
treec703a5b439db353fa65bb1e19625127549cf3b95
parente5579ae42d9798a08c67c8ffd7a99dfa8002ab06
arm: set the relocated gd with gd->new_gd

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@st.com>
arch/arm/lib/crt0.S