ARM RVCT 3.1 compiler has issues with __packed structures containing anonymous structures in a union. I had to add extra PACKED macros to get things to compile. Hopefully at some point RVCT will support #pragma pack(1) properly and we can retire PACKED macro.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10856 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-09-07 18:26:58 +00:00
parent 3163461872
commit 605466ae28
1 changed files with 5 additions and 5 deletions

View File

@ -87,19 +87,19 @@ typedef PACKED struct {
UINT64 AddrLen; UINT64 AddrLen;
} EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR; } EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR;
typedef union { typedef PACKED union {
UINT8 Byte; UINT8 Byte;
struct { PACKED struct {
UINT8 Length : 3; UINT8 Length : 3;
UINT8 Name : 4; UINT8 Name : 4;
UINT8 Type : 1; UINT8 Type : 1;
} Bits; } Bits;
} ACPI_SMALL_RESOURCE_HEADER; } ACPI_SMALL_RESOURCE_HEADER;
typedef struct { typedef PACKED struct {
union { PACKED union {
UINT8 Byte; UINT8 Byte;
struct{ PACKED struct {
UINT8 Name : 7; UINT8 Name : 7;
UINT8 Type : 1; UINT8 Type : 1;
}Bits; }Bits;