[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
This commit is contained in:
eric_tian 2008-03-20 08:47:30 +00:00
parent b3149ea705
commit 6d87c34485
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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]