MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16335 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1626,6 +1626,7 @@ CoreStartImage (
|
||||
// Subsequent calls to LongJump() cause a non-zero value to be returned by SetJump().
|
||||
//
|
||||
if (SetJumpFlag == 0) {
|
||||
RegisterMemoryProfileImage (Image, (Image->ImageContext.ImageType == EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION ? EFI_FV_FILETYPE_APPLICATION : EFI_FV_FILETYPE_DRIVER));
|
||||
//
|
||||
// Call the image's entry point
|
||||
//
|
||||
@@ -1851,6 +1852,7 @@ CoreUnloadImage (
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
goto Done;
|
||||
}
|
||||
UnregisterMemoryProfileImage (Image);
|
||||
|
||||
if (Image->Started) {
|
||||
//
|
||||
|
Reference in New Issue
Block a user