[v2,3/5] acpi: pack rsdp

Submitted by Michael S. Tsirkin on July 7, 2013, 3:42 p.m.

Details

Message ID 1373211589-8097-4-git-send-email-mst@redhat.com
State New
Headers show

Commit Message

Michael S. Tsirkin July 7, 2013, 3:42 p.m.
rsdp might not be aligned, so mark it packed.

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

Patch hide | download patch | download mbox

diff --git a/src/acpi.h b/src/acpi.h
index f872b39..eab982a 100644
--- a/src/acpi.h
+++ b/src/acpi.h
@@ -47,7 +47,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;
 
 extern struct rsdp_descriptor *RsdpAddr;