mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
498a6d9883
commit
4f1afaacb2
|
@ -23,6 +23,7 @@ typedef struct {
|
||||||
UINT32 Length;
|
UINT32 Length;
|
||||||
} EFI_ACPI_COMMON_HEADER;
|
} EFI_ACPI_COMMON_HEADER;
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
///
|
///
|
||||||
/// Common ACPI description table header. This structure prefaces most ACPI tables.
|
/// Common ACPI description table header. This structure prefaces most ACPI tables.
|
||||||
///
|
///
|
||||||
|
@ -37,6 +38,7 @@ typedef struct {
|
||||||
UINT32 CreatorId;
|
UINT32 CreatorId;
|
||||||
UINT32 CreatorRevision;
|
UINT32 CreatorRevision;
|
||||||
} EFI_ACPI_DESCRIPTION_HEADER;
|
} EFI_ACPI_DESCRIPTION_HEADER;
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
//
|
//
|
||||||
// Define for Desriptor
|
// Define for Desriptor
|
||||||
|
|
|
@ -99,6 +99,10 @@ typedef struct {
|
||||||
///
|
///
|
||||||
#define EFI_ACPI_2_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
#define EFI_ACPI_2_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
||||||
|
|
||||||
|
//
|
||||||
|
// Ensure proper structure formats
|
||||||
|
//
|
||||||
|
#pragma pack(1)
|
||||||
///
|
///
|
||||||
/// Fixed ACPI Description Table Structure (FADT)
|
/// 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 XGpe0Blk;
|
||||||
EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
|
EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
|
||||||
} EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE;
|
} EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE;
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
///
|
///
|
||||||
/// FADT Version (as defined in ACPI 2.0 spec.)
|
/// FADT Version (as defined in ACPI 2.0 spec.)
|
||||||
|
|
|
@ -108,6 +108,10 @@ typedef struct {
|
||||||
///
|
///
|
||||||
#define EFI_ACPI_3_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
#define EFI_ACPI_3_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
|
||||||
|
|
||||||
|
//
|
||||||
|
// Ensure proper structure formats
|
||||||
|
//
|
||||||
|
#pragma pack(1)
|
||||||
///
|
///
|
||||||
/// Fixed ACPI Description Table Structure (FADT)
|
/// 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 XGpe0Blk;
|
||||||
EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
|
EFI_ACPI_3_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
|
||||||
} EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE;
|
} EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE;
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
///
|
///
|
||||||
/// FADT Version (as defined in ACPI 3.0 spec.)
|
/// FADT Version (as defined in ACPI 3.0 spec.)
|
||||||
|
|
Loading…
Reference in New Issue