diff options
-rw-r--r-- | MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa | 7 | ||||
-rw-r--r-- | MdePkg/Library/BasePciExpressLib/PciLib.c | 3 |
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);
}
/**
|