summaryrefslogtreecommitdiff
path: root/lib/acpi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-01 09:02:37 -0700
committerSimon Glass <sjg@chromium.org>2022-01-25 11:44:36 -0700
commit233f0e35a3536102e13bed924a1c4aa33726f244 (patch)
tree0008b8280127b9d3f6c8c2addc1146cffa296bb2 /lib/acpi
parente1722fcb7d3fcb62b41f0feda4ac2c7d27d7c1f1 (diff)
downloadu-boot-233f0e35a3536102e13bed924a1c4aa33726f244.tar.gz
u-boot-233f0e35a3536102e13bed924a1c4aa33726f244.tar.bz2
u-boot-233f0e35a3536102e13bed924a1c4aa33726f244.zip
x86: Move the acpi table to generic global_data
Allow this to be used on any arch. Also convert to using macros so that we can check the CONFIG option in C code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/acpi')
-rw-r--r--lib/acpi/acpi_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c
index d1685404c2..3a72718df8 100644
--- a/lib/acpi/acpi_table.c
+++ b/lib/acpi/acpi_table.c
@@ -260,7 +260,7 @@ void acpi_setup_base_tables(struct acpi_ctx *ctx, void *start)
/* Align ACPI tables to 16 byte */
acpi_align(ctx);
- gd->arch.acpi_start = map_to_sysmem(ctx->current);
+ gd_set_acpi_start(map_to_sysmem(ctx->current));
/* We need at least an RSDP and an RSDT Table */
ctx->rsdp = ctx->current;