mirror of
https://xff.cz/git/u-boot/
synced 2025-10-02 07:51:17 +02:00
x86: efi: Don't set up global_data again with EFI
Since EFI does not relocate and uses the same global_data pointer throughout the board-init process, drop this unnecessary setup, to avoid a hang. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
40b172314b
commit
86bb48880d
@@ -841,9 +841,8 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
|
|||||||
* TODO(sjg@chromium.org): Consider doing this for all archs, or
|
* TODO(sjg@chromium.org): Consider doing this for all archs, or
|
||||||
* dropping the new_gd parameter.
|
* dropping the new_gd parameter.
|
||||||
*/
|
*/
|
||||||
#if CONFIG_IS_ENABLED(X86_64)
|
if (CONFIG_IS_ENABLED(X86_64) && !IS_ENABLED(CONFIG_EFI_APP))
|
||||||
arch_setup_gd(new_gd);
|
arch_setup_gd(new_gd);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_NEEDS_MANUAL_RELOC
|
#ifdef CONFIG_NEEDS_MANUAL_RELOC
|
||||||
int i;
|
int i;
|
||||||
|
Reference in New Issue
Block a user