X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBasePciCf8Lib%2FPciLib.c;h=fe27c850c1f2e9064dce78c4f1477222e62efb24;hp=a2fdc3e820277b5a64d9db69554999d58ee246a2;hb=89aa8406d92af44cd2956efb12f869ce2217afe2;hpb=50a3fe9561e7d120de2adb246c5aee8396632786 diff --git a/MdePkg/Library/BasePciCf8Lib/PciLib.c b/MdePkg/Library/BasePciCf8Lib/PciLib.c index a2fdc3e820..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) & 0xffffff00) | ((A) & 0xfc) | 0x80000000)) + ((UINT32) ((((A) >> 4) & 0x00ffff00) | ((A) & 0xfc) | 0x80000000)) /** Reads an 8-bit PCI configuration register.