alignment fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 8 May 2006 13:38:46 +0000 (13:38 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 8 May 2006 13:38:46 +0000 (13:38 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1910 c046a42c-6fe2-441c-8c8c-71466251a162

hw/acpi.c

index 40fc334..3ffdfdd 100644 (file)
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -521,7 +521,8 @@ void acpi_bios_init(void)
     dsdt_addr = addr;
     dsdt = (void *)(phys_ram_base + addr);
     addr += sizeof(AmlCode);
-    
+
+    addr = (addr + 7) & ~7;
     madt_addr = addr;
     madt_size = sizeof(*madt) + 
         sizeof(struct madt_processor_apic) * smp_cpus +