efi: app: Use the relocated global_data

The new global_data is set up by the app but it never uses it. Switch to
the new value after board_init_f(), so that the output of the 'meminfo'
command is more contiguous.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-15 14:00:35 -06:00
parent 70139c8226
commit 043c879dd1

View File

@@ -221,6 +221,7 @@ efi_status_t EFIAPI efi_main(efi_handle_t image,
printf("starting\n");
board_init_f(GD_FLG_SKIP_RELOC);
gd = gd->new_gd;
board_init_r(NULL, 0);
free_memory(priv);