The EFI app has its own way of handling the global_data pointer, regardless of which arch is in use. Skip the jump_to_copy() function since it calls the arch-specific arch_setup_gd().
Signed-off-by: Simon Glass <s...@chromium.org> --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 5b9203fec18..50726bfe32e 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -737,7 +737,7 @@ static int fix_fdt(void) static int jump_to_copy(void) { - if (gd->flags & GD_FLG_SKIP_RELOC) + if (IS_ENABLED(CONFIG_EFI_APP) || (gd->flags & GD_FLG_SKIP_RELOC)) return 0; /* * x86 is special, but in a nice way. It uses a trampoline which -- 2.43.0