//\r
CoreInitializeMemoryServices (&HobStart, &MemoryBaseAddress, &MemoryLength);\r
\r
+ MemoryProfileInit (HobStart);\r
+\r
//\r
// Allocate the EFI System Table and EFI Runtime Service Table from EfiRuntimeServicesData\r
// Use the templates to initialize the contents of the EFI System Table and EFI Runtime Services Table\r
//\r
// Report DXE Core image information to the PE/COFF Extra Action Library\r
//\r
+ ZeroMem (&ImageContext, sizeof (ImageContext));\r
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)gDxeCoreLoadedImage->ImageBase;\r
- ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);\r
+ ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);\r
PeCoffLoaderRelocateImageExtraAction (&ImageContext);\r
\r
//\r
Status = CoreInitializeEventServices ();\r
ASSERT_EFI_ERROR (Status);\r
\r
+ MemoryProfileInstallProtocol ();\r
+\r
//\r
// Get persisted vector hand-off info from GUIDeed HOB again due to HobStart may be updated,\r
// and install configuration table\r