Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/76178?usp=email )
Change subject: acpi.c: Guard FACS generation ......................................................................
acpi.c: Guard FACS generation
It's not expected that non-x86 arch implement x86 style sleep states and resume.
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I7a1f36616e7f6adb021625e62e0fdf81864c7ac3 --- M src/acpi/acpi.c 1 file changed, 7 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/76178/1
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index e0e72f7..fac8cf5 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -2050,12 +2050,14 @@ acpi_write_rsdt(rsdt, oem_id, oem_table_id); acpi_write_xsdt(xsdt, oem_id, oem_table_id);
- printk(BIOS_DEBUG, "ACPI: * FACS\n"); current = ALIGN_UP(current, 64); - facs = (acpi_facs_t *)current; - current += sizeof(acpi_facs_t); - current = acpi_align_current(current); - acpi_create_facs(facs); + if (ENV_X86) { + printk(BIOS_DEBUG, "ACPI: * FACS\n"); + facs = (acpi_facs_t *)current; + current += sizeof(acpi_facs_t); + current = acpi_align_current(current); + acpi_create_facs(facs); + }
printk(BIOS_DEBUG, "ACPI: * DSDT\n"); dsdt = (acpi_header_t *)current;