tools/libacpi: Use 64-byte alignment for FACS
authorKevin Stefanov <kevin.stefanov@citrix.com>
Fri, 15 Oct 2021 09:16:09 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:16:09 +0000 (11:16 +0200)
The spec requires 64-byte alignment, not 16.

Signed-off-by: Kevin Stefanov <kevin.stefanov@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: c76cfada1cfad05aaf64ce3ad305c5467650e782
master date: 2021-09-10 13:27:08 +0100

tools/libacpi/build.c

index a61dd5583a1fccdc2f09be663204a8e0d0ada1ad..fe2db66a62e68b92bdcbc1949e0de2900cec6e6c 100644 (file)
@@ -532,7 +532,7 @@ int acpi_build_tables(struct acpi_ctxt *ctxt, struct acpi_config *config)
      * Fill in high-memory data structures, starting at @buf.
      */
 
-    facs = ctxt->mem_ops.alloc(ctxt, sizeof(struct acpi_20_facs), 16);
+    facs = ctxt->mem_ops.alloc(ctxt, sizeof(struct acpi_20_facs), 64);
     if (!facs) goto oom;
     memcpy(facs, &Facs, sizeof(struct acpi_20_facs));