From 605466ae28482dd3d797e208fe80554f9814b175 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Tue, 7 Sep 2010 18:26:58 +0000 Subject: [PATCH] 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 --- MdePkg/Include/IndustryStandard/Acpi10.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi10.h b/MdePkg/Include/IndustryStandard/Acpi10.h index 591cbbb3dd..fcc9146ca4 100644 --- a/MdePkg/Include/IndustryStandard/Acpi10.h +++ b/MdePkg/Include/IndustryStandard/Acpi10.h @@ -87,19 +87,19 @@ typedef PACKED struct { UINT64 AddrLen; } EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR; -typedef union { +typedef PACKED union { UINT8 Byte; - struct { + PACKED struct { UINT8 Length : 3; UINT8 Name : 4; UINT8 Type : 1; } Bits; } ACPI_SMALL_RESOURCE_HEADER; -typedef struct { - union { +typedef PACKED struct { + PACKED union { UINT8 Byte; - struct{ + PACKED struct { UINT8 Name : 7; UINT8 Type : 1; }Bits; -- 2.39.2