From 6749d10be5ec2b96f3c72b1a7a32a6329f9aa832 Mon Sep 17 00:00:00 2001 From: bxing Date: Mon, 22 May 2006 08:51:07 +0000 Subject: [PATCH] Fixed tracker #49 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@230 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa | 7 +++++++ 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. 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); } /** -- 2.39.2