diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-06 09:57:16 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-06 09:57:16 +0000 |
commit | 307e7596bef6240a381f233235997bdbd8f35c86 (patch) | |
tree | 3bbe9b47761709a7ed5fb08df0617894da0352c3 /IntelFrameworkModulePkg | |
parent | 16687e11bfc0d343a51349d0d9a3f694125a43ca (diff) | |
download | edk2-platforms-307e7596bef6240a381f233235997bdbd8f35c86.tar.xz |
Fix UINT64 multi const issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3120 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c index 9a0de96a15..8fe80a1819 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBus/Dxe/PciLib.c @@ -2328,7 +2328,7 @@ WriteConfigData ( //
UpdateConfigData (PciDeviceInfo, PCI_REGISTER_READ, AccessWidth, AccessAddress & 0xff, &Data);
- Shift = (UINTN) ((Address - AccessAddress) * 8);
+ Shift = (UINTN)(Address - AccessAddress) * 8;
switch (Width) {
case EfiPciWidthUint8:
Data = (* (UINT8 *) Buffer) << Shift | (Data & ~(0xff << Shift));
@@ -2342,7 +2342,7 @@ WriteConfigData ( //
// check data write incompatibility
//
- UpdateConfigData (PciDeviceInfo, PCI_REGISTER_WRITE, AccessWidth, AccessAddress * 0xff, &Data);
+ UpdateConfigData (PciDeviceInfo, PCI_REGISTER_WRITE, AccessWidth, MultU64x32 (AccessAddress, 0xff), &Data);
}
if (PciRootBridgeIo != NULL) {
|