[Concept,05/15] riscv: Add the EFI table field to arch_global_data

Message ID 20260212001410.1919749-6-sjg@u-boot.org
State New
Headers
Series riscv: Add EFI-application support |

Commit Message

Simon Glass Feb. 12, 2026, 12:13 a.m. UTC
  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(+)
  

Patch

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;
 };