summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2021-11-13 20:34:59 +0300
committerTom Rini <trini@konsulko.com>2021-11-19 02:20:19 +0300
commitb1f3f982fa1cdcf08717a37e00adcb6fc3d89bf4 (patch)
tree750049c4c588dc1da71a290a4cdd5b0d44209a5f /lib
parentbd994c007ae232ade284c9c22c9150077961fe19 (diff)
downloadu-boot-b1f3f982fa1cdcf08717a37e00adcb6fc3d89bf4.tar.xz
arm64: Add missing GD_FLG_SKIP_RELOC handling
In case U-Boot enters relocation with GD_FLG_SKIP_RELOC, skip the relocation. The code still has to set up new_gd pointer and new stack pointer. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/asm-offsets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index c691066332..0808cd4b0c 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -29,6 +29,9 @@ int main(void)
DEFINE(GD_SIZE, sizeof(struct global_data));
DEFINE(GD_BD, offsetof(struct global_data, bd));
+
+ DEFINE(GD_FLAGS, offsetof(struct global_data, flags));
+
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
#endif