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. MdePkg + + + PcdPciExpressBaseAddress + 0x0000000A + UINT64 + + 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); } /**