From: yshang1 Date: Tue, 23 May 2006 08:13:06 +0000 (+0000) Subject: git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@242 6f19259b... X-Git-Tag: edk2-stable201903~25449 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=89aa8406d92af44cd2956efb12f869ce2217afe2;ds=sidebyside git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@242 6f19259b-4bc3-4df7-8a09-765794883524 --- 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.