efi: arm: x86: Allow use of the EFI table in the app

It isn't worth the hassle of omitting this field for the app, since code
is shared between the payload and the app. Adjust the condition to avoid
a build error in the 'efi' command with the app on 64-bit ARM.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-02-14 20:22:41 -07:00
parent 78c4c1d17e
commit f4fdb3a8be
2 changed files with 3 additions and 3 deletions

View File

@@ -108,8 +108,8 @@ struct arch_global_data {
#ifdef CONFIG_SMBIOS
ulong smbios_start; /* Start address of SMBIOS table */
#endif
#ifdef CONFIG_EFI_STUB
ulong table;
#ifdef CONFIG_EFI
ulong table; /* holds the table address from previous EFI firmware */
#endif
};

View File

@@ -110,7 +110,7 @@ struct arch_global_data {
int has_mtrr;
/* MRC training data */
struct mrc_output mrc[MRC_TYPE_COUNT];
ulong table; /* Table pointer from previous loader */
ulong table; /* coreboot/EFI table address from previous loader */
int turbo_state; /* Current turbo state */
struct irq_routing_table *pirq_routing_table;
int dw_i2c_num_cards; /* Used by designware i2c driver */