From 133108af2550ae3f6dc6eda14c03d2e195b81240 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 8 Aug 2015 23:20:58 +0200 Subject: [PATCH] acpi: Align FACS to 64 bytes The spec states (5.2.10): "The BIOS aligns the FACS on a 64-byte boundary anywhere within the system's memory address space." Change-Id: Ie9415e505525dbdd418028d4954018c829921a18 Signed-off-by: Patrick Georgi Found-by: fwts 15.08 Reviewed-on: http://review.coreboot.org/11141 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/arch/x86/acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c index 134e43782e..0439ab5188 100644 --- a/src/arch/x86/acpi.c +++ b/src/arch/x86/acpi.c @@ -815,6 +815,7 @@ unsigned long write_acpi_tables(unsigned long start) acpi_write_xsdt(xsdt, oem_id, oem_table_id); printk(BIOS_DEBUG, "ACPI: * FACS\n"); + current = (ALIGN(current, 64)); facs = (acpi_facs_t *) current; current += sizeof(acpi_facs_t); ALIGN_CURRENT;