Fix UINT64 multi const issues.
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 09:57:16 +0000 (09:57 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 09:57:16 +0000 (09:57 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3120 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c

index 9a0de96..8fe80a1 100644 (file)
@@ -2328,7 +2328,7 @@ WriteConfigData (
           //\r
           UpdateConfigData (PciDeviceInfo, PCI_REGISTER_READ, AccessWidth, AccessAddress & 0xff, &Data);\r
 \r
-          Shift = (UINTN) ((Address - AccessAddress) * 8);\r
+          Shift = (UINTN)(Address - AccessAddress) * 8;\r
           switch (Width) {\r
           case EfiPciWidthUint8:\r
             Data = (* (UINT8 *) Buffer) << Shift | (Data & ~(0xff << Shift));\r
@@ -2342,7 +2342,7 @@ WriteConfigData (
           //\r
           // check data write incompatibility\r
           //\r
-          UpdateConfigData (PciDeviceInfo, PCI_REGISTER_WRITE, AccessWidth, AccessAddress * 0xff, &Data);\r
+          UpdateConfigData (PciDeviceInfo, PCI_REGISTER_WRITE, AccessWidth, MultU64x32 (AccessAddress, 0xff), &Data);\r
         }\r
 \r
         if (PciRootBridgeIo != NULL) {\r