Skip to contentSkip to conversation

acpi: align RSDP

PATCH In review Michael S. Tsirkin 2 participants 2 messages Aug 4, 2014 – Aug 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +1 -1
index 816c6d9..10b84d0 100644
@@ -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);
Signature · 1 line
MST
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Michael S. Tsirkin

RSDP should be aligned at a 16-byte boundary. This would by chance at the moment, fix up acpi build to make it robust.

---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/acpi-build.c +0 -0
index 816c6d9..10b84d0 100644

hw/i386/acpi-build.c build_rsdp(GArray *rsdp_table, GArray *linker, unsigned rsdt) · line 1399

Quoted 8 lines
hw/i386/acpi-build.c +1 -1
@@ -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);