summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Nowicki <tomasz.nowicki@linaro.org>2013-11-06 16:12:25 +0100
committerTomasz Nowicki <tomasz.nowicki@linaro.org>2013-11-19 13:08:23 +0100
commita138a94d34c0f3eacf67902ad9e0d2d7b280f453 (patch)
tree0c47c702113e15222d7ae359826d5da33597698b
parenteffaf4fa57731daf462e4d254e1c3c019cec8a11 (diff)
acpi: Be sure ACPI structure are packed with 1 byte alignment.
-rw-r--r--tools/common/include/acpi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/common/include/acpi.h b/tools/common/include/acpi.h
index dddbca4..505d5f2 100644
--- a/tools/common/include/acpi.h
+++ b/tools/common/include/acpi.h
@@ -42,6 +42,8 @@
#define ACPI_OEM_ID_SIZE 6
#define ACPI_OEM_TABLE_ID_SIZE 8
+#pragma pack(1)
+
/* Generic ACPI table header */
struct acpi_table_header {
@@ -302,4 +304,7 @@ struct acpi_whea_header {
uint64_t mask; /* Bitmask required for this register instruction */
};
+/* Reset to default packing */
+#pragma pack()
+
#endif /* ACPI_H_ */