[U-Boot] [PATCH 18/26] x86: acpi: Align FACS table to a 64 byte boundary

Bin Meng
2016-05-02T07:33:38Z

Per ACPI spec, the FACS table address must be aligned to a 64 byte
boundary (Windows checks this, but Linux does not).

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

arch/x86/lib/acpi_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index 0e43452..9f2623a 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -338,7 +338,7 @@ u32 write_acpi_tables(u32 start)
current = ALIGN(current, 16);
xsdt = (struct acpi_xsdt *)current;
current += sizeof(struct acpi_xsdt);
- current = ALIGN(current, 16);
+ current = ALIGN(current, 64);

/* clear all table memory */
memset((void *)start, 0, current - start);
--
1.8.2.1