diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-01 09:02:37 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-25 11:44:36 -0700 |
commit | 233f0e35a3536102e13bed924a1c4aa33726f244 (patch) | |
tree | 0008b8280127b9d3f6c8c2addc1146cffa296bb2 /cmd/acpi.c | |
parent | e1722fcb7d3fcb62b41f0feda4ac2c7d27d7c1f1 (diff) | |
download | u-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 'cmd/acpi.c')
-rw-r--r-- | cmd/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/acpi.c b/cmd/acpi.c index 9c3462b411..1d302994b8 100644 --- a/cmd/acpi.c +++ b/cmd/acpi.c @@ -47,7 +47,7 @@ struct acpi_table_header *find_table(const char *sig) struct acpi_rsdt *rsdt; int len, i, count; - rsdp = map_sysmem(gd->arch.acpi_start, 0); + rsdp = map_sysmem(gd_acpi_start(), 0); if (!rsdp) return NULL; rsdt = map_sysmem(rsdp->rsdt_address, 0); @@ -143,12 +143,12 @@ static int do_acpi_list(struct cmd_tbl *cmdtp, int flag, int argc, { struct acpi_rsdp *rsdp; - rsdp = map_sysmem(gd->arch.acpi_start, 0); + rsdp = map_sysmem(gd_acpi_start(), 0); if (!rsdp) { printf("No ACPI tables present\n"); return 0; } - printf("ACPI tables start at %lx\n", gd->arch.acpi_start); + printf("ACPI tables start at %lx\n", gd_acpi_start()); list_rsdp(rsdp); return 0; |