mirror of https://github.com/acidanthera/audk.git
Fix UINT64 multi const issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3120 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
16687e11bf
commit
307e7596be
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue