]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ARM RVCT 3.1 compiler has issues with __packed structures containing anonymous struct...
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Sep 2010 18:26:58 +0000 (18:26 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Sep 2010 18:26:58 +0000 (18:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10856 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/IndustryStandard/Acpi10.h

index 591cbbb3dd5d7400d36867a7df1cba91d79f1fda..fcc9146ca4ae988bd65af6d0a3a7350dfe1c8f9a 100644 (file)
@@ -87,19 +87,19 @@ typedef PACKED struct {
   UINT64  AddrLen;\r
 } EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR;\r
 \r
-typedef union {\r
+typedef PACKED union {\r
   UINT8     Byte;\r
-  struct {\r
+  PACKED struct {\r
     UINT8 Length : 3;\r
     UINT8 Name : 4;\r
     UINT8 Type : 1;\r
   } Bits;\r
 } ACPI_SMALL_RESOURCE_HEADER;\r
 \r
-typedef struct {\r
-  union {\r
+typedef PACKED struct {\r
+  PACKED union {\r
     UINT8 Byte;\r
-    struct{\r
+    PACKED struct {\r
       UINT8 Name : 7;\r
       UINT8 Type : 1;\r
     }Bits;\r