summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-20 08:47:30 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-20 08:47:30 +0000
commit6d87c34485a7491f557321361bb2be15ac197f83 (patch)
tree6cc5f2d2253c3c659049d363ea8fa290cbffee33
parentb3149ea7059e3cd2e7e1b031152b8f7f77546059 (diff)
downloadedk2-platforms-6d87c34485a7491f557321361bb2be15ac197f83.tar.xz
[Description]
use PcdEmulatorEnable to avoid install two instances of EFI_PEI_PROGRESS_CODE_PPI in NT32 Emulator. it is the requirement of PI spec [Impaction] use PcdEmulatorEnable to avoid install two instances of EFI_PEI_PROGRESS_CODE_PPI in NT32 Emulator. [Reference Info] it is the requirement of PI spec git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4926 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c6
-rw-r--r--IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf2
2 files changed, 6 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c
index 03f25c8fc6..ffd988ecd7 100644
--- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c
+++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c
@@ -138,8 +138,10 @@ PeiStatusCodeDriverEntry (
// Install PeiStatusCodePpi.
// PeiServices use this Ppi to output status code.
// use library
- Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);
- ASSERT_EFI_ERROR (Status);
+ if (!FeaturePcdGet(PcdNtEmulatorEnable)) {
+ Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);
+ ASSERT_EFI_ERROR (Status);
+ }
return EFI_SUCCESS;
}
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
index c504f1a0f3..42a389438f 100644
--- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
+++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
@@ -40,6 +40,7 @@
[Packages]
MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
IntelFrameworkPkg/IntelFrameworkPkg.dec
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
@@ -69,6 +70,7 @@
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseOEM
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial
+ gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable
[Pcd.common]