MdeModulePkg DxeIpl: Skip install MemoryInfoHob if this hob exists

Add the check at DxeLoadCore() on MdeModulePkg\Core\DxeIplPeim\DxeLoad.c
to skip install the "gEfiMemoryTypeInformationGuid" hob if it is already
installed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18018 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Liming Gao 2015-07-16 05:42:58 +00:00 committed by lgao4
parent 90ae1f0270
commit d1d89e86ed
1 changed files with 30 additions and 25 deletions

View File

@ -273,6 +273,10 @@ DxeLoadCore (
// //
} }
if (GetFirstGuidHob ((CONST EFI_GUID *)&gEfiMemoryTypeInformationGuid) == NULL) {
//
// Don't build GuidHob if GuidHob has been installed.
//
Status = PeiServicesLocatePpi ( Status = PeiServicesLocatePpi (
&gEfiPeiReadOnlyVariable2PpiGuid, &gEfiPeiReadOnlyVariable2PpiGuid,
0, 0,
@ -300,6 +304,7 @@ DxeLoadCore (
); );
} }
} }
}
// //
// Look in all the FVs present in PEI and find the DXE Core FileHandle // Look in all the FVs present in PEI and find the DXE Core FileHandle