diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-10 09:11:32 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-10 09:11:32 +0000 |
commit | 4f1afaacb283542ee1fdf14602c5d2f44a79de5c (patch) | |
tree | 5242232cc7b04c274944ca36f89fd876bbd1d63c | |
parent | 498a6d988368a1f73b92ea7ab939cd63e9ba1b93 (diff) | |
download | edk2-4f1afaacb283542ee1fdf14602c5d2f44a79de5c.zip edk2-4f1afaacb283542ee1fdf14602c5d2f44a79de5c.tar.gz edk2-4f1afaacb283542ee1fdf14602c5d2f44a79de5c.tar.bz2 |
add #pragma pack(1) for some structures.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6439 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/IndustryStandard/Acpi10.h | 2 | ||||
-rw-r--r-- | MdePkg/Include/IndustryStandard/Acpi20.h | 5 | ||||
-rw-r--r-- | MdePkg/Include/IndustryStandard/Acpi30.h | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/Acpi10.h b/MdePkg/Include/IndustryStandard/Acpi10.h index c05a605..dbd61a2 100644 --- a/MdePkg/Include/IndustryStandard/Acpi10.h +++ b/MdePkg/Include/IndustryStandard/Acpi10.h @@ -23,6 +23,7 @@ typedef struct { UINT32 Length;
} EFI_ACPI_COMMON_HEADER;
+#pragma pack(1)
///
/// Common ACPI description table header. This structure prefaces most ACPI tables.
///
@@ -37,6 +38,7 @@ typedef struct { UINT32 CreatorId;
UINT32 CreatorRevision;
} EFI_ACPI_DESCRIPTION_HEADER;
+#pragma pack()
//
// Define for Desriptor
diff --git a/MdePkg/Include/IndustryStandard/Acpi20.h b/MdePkg/Include/IndustryStandard/Acpi20.h index b67ee54..4476bf9 100644 --- a/MdePkg/Include/IndustryStandard/Acpi20.h +++ b/MdePkg/Include/IndustryStandard/Acpi20.h @@ -99,6 +99,10 @@ typedef struct { ///
#define EFI_ACPI_2_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
+//
+// Ensure proper structure formats
+//
+#pragma pack(1)
///
/// Fixed ACPI Description Table Structure (FADT)
///
@@ -156,6 +160,7 @@ typedef struct { EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
} EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE;
+#pragma pack()
///
/// FADT Version (as defined in ACPI 2.0 spec.)
diff --git a/MdePkg/Include/IndustryStandard/Acpi30.h b/MdePkg/Include/IndustryStandard/Acpi30.h index d07cce5..207f060 100644 --- a/MdePkg/Include/IndustryStandard/Acpi30.h +++ b/MdePkg/Include/IndustryStandard/Acpi30.h @@ -108,6 +108,10 @@ typedef struct { ///
#define EFI_ACPI_3_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
+//
+// Ensure proper structure formats
+//
+#pragma pack(1)
///
/// Fixed ACPI Description Table Structure (FADT)
///
@@ -165,6 +169,7 @@ typedef struct { EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
} EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE;
+#pragma pack()
///
/// FADT Version (as defined in ACPI 3.0 spec.)
|