[SeaBIOS] [PATCH v5 3/4] acpi: pack rsdp

Michael S. Tsirkin mst at redhat.com
Wed Sep 25 11:54:44 CEST 2013


rsdp might not be aligned, so mark it packed.

Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
 src/std/acpi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/std/acpi.h b/src/std/acpi.h
index ecfa472..6ea5b9d 100644
--- a/src/std/acpi.h
+++ b/src/std/acpi.h
@@ -40,7 +40,7 @@ struct rsdp_descriptor {        /* Root System Descriptor Pointer */
     u64 xsdt_physical_address;  /* 64-bit physical address of XSDT */
     u8  extended_checksum;      /* Checksum of entire table */
     u8  reserved [3];           /* Reserved field must be 0 */
-};
+} PACKED;
 
 /* Table structure from Linux kernel (the ACPI tables are under the
    BSD license) */
-- 
MST




More information about the SeaBIOS mailing list