X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBasePciCf8Lib%2FPciLib.c;h=fe27c850c1f2e9064dce78c4f1477222e62efb24;hp=c5880bdeeee7e49fcc79e970128f291d9bbe4c4c;hb=89aa8406d92af44cd2956efb12f869ce2217afe2;hpb=878ddf1fc3540a715f63594ed22b6929e881afb4 diff --git a/MdePkg/Library/BasePciCf8Lib/PciLib.c b/MdePkg/Library/BasePciCf8Lib/PciLib.c index c5880bdeee..fe27c850c1 100644 --- a/MdePkg/Library/BasePciCf8Lib/PciLib.c +++ b/MdePkg/Library/BasePciCf8Lib/PciLib.c @@ -53,7 +53,7 @@ **/ #define PCI_TO_CF8_ADDRESS(A) \ - ((UINT32)(((A) >> 4) | ((A) & 0xfc) | 0x80000000)) + ((UINT32) ((((A) >> 4) & 0x00ffff00) | ((A) & 0xfc) | 0x80000000)) /** Reads an 8-bit PCI configuration register.