Add fields for the location of ACPI tables to the global data.

Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
v4:
        no change
v3:
        let tables in global data depend on CONFIG_(SPL_)ACPI
v2:
        no change
---
 arch/riscv/include/asm/global_data.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/riscv/include/asm/global_data.h 
b/arch/riscv/include/asm/global_data.h
index 937fa4d154..0f7c08a49d 100644
--- a/arch/riscv/include/asm/global_data.h
+++ b/arch/riscv/include/asm/global_data.h
@@ -32,6 +32,12 @@ struct arch_global_data {
        ulong available_harts;
 #endif
 #endif
+#if CONFIG_IS_ENABLED(ACPI)
+       ulong table_start;              /* Start address of ACPI tables */
+       ulong table_end;                /* End address of ACPI tables */
+       ulong table_start_high;         /* Start address of high ACPI tables */
+       ulong table_end_high;           /* End address of high ACPI tables */
+#endif
 #ifdef CONFIG_SMBIOS
        ulong smbios_start;             /* Start address of SMBIOS table */
 #endif
-- 
2.40.1

Reply via email to