acpi: align RSDP
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>
(cherry picked from commit d67aadccfa
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
ba1bc81991
commit
1ad9dcec47
|
@ -1393,7 +1393,7 @@ build_rsdp(GArray *rsdp_table, GArray *linker, unsigned rsdt)
|
||||||
{
|
{
|
||||||
AcpiRsdpDescriptor *rsdp = acpi_data_push(rsdp_table, sizeof *rsdp);
|
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 */);
|
true /* fseg memory */);
|
||||||
|
|
||||||
memcpy(&rsdp->signature, "RSD PTR ", 8);
|
memcpy(&rsdp->signature, "RSD PTR ", 8);
|
||||||
|
|
Loading…
Reference in New Issue