From: Simon Glass <simon.glass@canonical.com> The EFI client code stores the EFI system table address in gd->arch.table. This field exists in the x86 and ARM arch_global_data but is missing for RISC-V, so add it. Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- arch/riscv/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h index 47b5e2cfc8f..1ef82f35fb0 100644 --- a/arch/riscv/include/asm/global_data.h +++ b/arch/riscv/include/asm/global_data.h @@ -42,6 +42,9 @@ struct arch_global_data { #endif #ifdef CONFIG_SMBIOS ulong smbios_start; /* Start address of SMBIOS table */ +#endif +#ifdef CONFIG_EFI_CLIENT + ulong table; /* holds the table address from previous EFI firmware */ #endif struct resume_data *resume; }; -- 2.43.0