summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BasePciCf8Lib/PciLib.c
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-23 08:13:06 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-23 08:13:06 +0000
commit89aa8406d92af44cd2956efb12f869ce2217afe2 (patch)
tree0d16e5e048038fecaa71004f13bcd92172caf0af /MdePkg/Library/BasePciCf8Lib/PciLib.c
parent50a3fe9561e7d120de2adb246c5aee8396632786 (diff)
downloadedk2-platforms-89aa8406d92af44cd2956efb12f869ce2217afe2.tar.xz
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@242 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePciCf8Lib/PciLib.c')
-rw-r--r--MdePkg/Library/BasePciCf8Lib/PciLib.c2
1 files changed, 1 insertions, 1 deletions
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.