summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BasePciExpressLib
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 08:51:07 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 08:51:07 +0000
commit6749d10be5ec2b96f3c72b1a7a32a6329f9aa832 (patch)
treef160d87a63a641efc93a67e4a5b3832f44c66862 /MdePkg/Library/BasePciExpressLib
parentb544966b2725ccbd31296626901dece19ee2df31 (diff)
downloadedk2-6749d10be5ec2b96f3c72b1a7a32a6329f9aa832.tar.gz
edk2-6749d10be5ec2b96f3c72b1a7a32a6329f9aa832.tar.bz2
edk2-6749d10be5ec2b96f3c72b1a7a32a6329f9aa832.zip
Fixed tracker #49
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@230 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePciExpressLib')
-rw-r--r--MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa7
-rw-r--r--MdePkg/Library/BasePciExpressLib/PciLib.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa b/MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa
index dd071189dc..af128ea417 100644
--- a/MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa
+++ b/MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa
@@ -42,4 +42,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<Includes>
<PackageName>MdePkg</PackageName>
</Includes>
+ <PCDs>
+ <PcdData ItemType="FIXED_AT_BUILD">
+ <C_Name>PcdPciExpressBaseAddress</C_Name>
+ <Token>0x0000000A</Token>
+ <DatumType>UINT64</DatumType>
+ </PcdData>
+ </PCDs>
</LibraryModuleSurfaceArea>
diff --git a/MdePkg/Library/BasePciExpressLib/PciLib.c b/MdePkg/Library/BasePciExpressLib/PciLib.c
index a3dab38ec3..3003613486 100644
--- a/MdePkg/Library/BasePciExpressLib/PciLib.c
+++ b/MdePkg/Library/BasePciExpressLib/PciLib.c
@@ -37,8 +37,7 @@ GetPciExpressBaseAddress (
VOID
)
{
- /// @bug Change this to a PCD Get call to retrieve the PCI-E Base Address
- return 0xc0000000;
+ return (UINTN)PcdGet64 (PcdPciExpressBaseAddress);
}
/**