acpi: align RSDP
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Aug 2014 14:56:57 +0000 (16:56 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 14 Aug 2014 11:22:16 +0000 (13:22 +0200)
RSDP should be aligned at a 16-byte boundary.
This would by chance at the moment, fix up acpi build
to make it robust.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
hw/i386/acpi-build.c

index 816c6d9..10b84d0 100644 (file)
@@ -1393,7 +1393,7 @@ build_rsdp(GArray *rsdp_table, GArray *linker, unsigned rsdt)
 {
     AcpiRsdpDescriptor *rsdp = acpi_data_push(rsdp_table, sizeof *rsdp);
 
-    bios_linker_loader_alloc(linker, ACPI_BUILD_RSDP_FILE, 1,
+    bios_linker_loader_alloc(linker, ACPI_BUILD_RSDP_FILE, 16,
                              true /* fseg memory */);
 
     memcpy(&rsdp->signature, "RSD PTR ", 8);