aboutsummaryrefslogtreecommitdiff
path: root/cmd
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 /cmd
parente1722fcb7d3fcb62b41f0feda4ac2c7d27d7c1f1 (diff)
downloadu-boot-233f0e35a3536102e13bed924a1c4aa33726f244.zip
u-boot-233f0e35a3536102e13bed924a1c4aa33726f244.tar.gz
u-boot-233f0e35a3536102e13bed924a1c4aa33726f244.tar.bz2
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')
-rw-r--r--cmd/acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/acpi.c b/cmd/acpi.c
index 9c3462b..1d30299 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;