]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix ICC build break.
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Nov 2010 03:16:25 +0000 (03:16 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Nov 2010 03:16:25 +0000 (03:16 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11020 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c

index e7d4ae3e5595ce71e87c3d1ce1f793d910ced358..3fa985f567caeafd59e2874492a5382292a2786f 100644 (file)
@@ -451,7 +451,7 @@ PciIoMemRead (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }  \r
@@ -526,7 +526,7 @@ PciIoMemWrite (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }\r
@@ -600,7 +600,7 @@ PciIoIoRead (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }    \r
@@ -674,7 +674,7 @@ PciIoIoWrite (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }  \r
@@ -739,7 +739,7 @@ PciIoConfigRead (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }    \r
@@ -804,7 +804,7 @@ PciIoConfigWrite (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((Offset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }  \r
@@ -899,7 +899,7 @@ PciIoCopyMem (
   //  \r
   if (FeaturePcdGet (PcdUnalignedPciIoEnable)) {\r
     if ((SrcOffset & ((1 << (Width & 0x03)) - 1)) != 0 || (DestOffset & ((1 << (Width & 0x03)) - 1)) != 0) {\r
-      Width &= (~0x03);\r
+      Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & (~0x03));\r
       Count *=  (UINTN)(1 << (Width & 0x03));\r
     }\r
   }  \r