X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FDxeMain%2FDxeMain.c;h=1ac5cc17212d590479723f9216e85e3f69852fe3;hp=5a8814041c11b7c0e8f4b4da18fc33ccfd1d6032;hb=84edd20bd0756ef5719835498d4283435d6b5e77;hpb=2f497dc147a1f05a13b8753a88b3e23e23a6b8a0 diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 5a8814041c..1ac5cc1721 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -268,6 +268,8 @@ DxeMain ( // CoreInitializeMemoryServices (&HobStart, &MemoryBaseAddress, &MemoryLength); + MemoryProfileInit (HobStart); + // // Allocate the EFI System Table and EFI Runtime Service Table from EfiRuntimeServicesData // Use the templates to initialize the contents of the EFI System Table and EFI Runtime Services Table @@ -382,6 +384,8 @@ DxeMain ( Status = CoreInitializeEventServices (); ASSERT_EFI_ERROR (Status); + MemoryProfileInstallProtocol (); + // // Get persisted vector hand-off info from GUIDeed HOB again due to HobStart may be updated, // and install configuration table