Patchwork [v2,3/5] acpi: pack rsdp

login
register
mail settings
Submitter Michael S. Tsirkin
Date July 7, 2013, 3:42 p.m.
Message ID <1373211589-8097-4-git-send-email-mst@redhat.com>
Download mbox | patch
Permalink /patch/257346/
State New
Headers show

Comments

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

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;