diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2021-11-13 18:34:59 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-11-18 18:20:19 -0500 |
commit | b1f3f982fa1cdcf08717a37e00adcb6fc3d89bf4 (patch) | |
tree | 750049c4c588dc1da71a290a4cdd5b0d44209a5f /lib/asm-offsets.c | |
parent | bd994c007ae232ade284c9c22c9150077961fe19 (diff) |
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/asm-offsets.c')
-rw-r--r-- | lib/asm-offsets.c | 3 |
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 |