Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/76181?usp=email )
Change subject: acpi.c: Fix generating pointer to cb_tables located >4G ......................................................................
acpi.c: Fix generating pointer to cb_tables located >4G
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I1bc553b18d08cee502b765166227810f8e619631 --- M src/acpi/acpi.c 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/76181/1
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index e0e72f7..10a6692 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -565,7 +565,10 @@ acpigen_write_STA(ACPI_STATUS_DEVICE_HIDDEN_ON); acpigen_write_name("_CRS"); acpigen_write_resourcetemplate_header(); - acpigen_write_mem32fixed(0, base, size); + if (base < UINT32_MAX) + acpigen_write_mem32fixed(0, base, size); + else + acpigen_write_mem64fixed(0, base, size); acpigen_write_resourcetemplate_footer(); acpigen_pop_len(); }