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:
@@ -874,10 +874,12 @@ SmmDispatcher (
|
||||
//
|
||||
// For each SMM driver, pass NULL as ImageHandle
|
||||
//
|
||||
RegisterSmramProfileImage (DriverEntry, TRUE);
|
||||
PERF_START (DriverEntry->ImageHandle, "StartImage:", NULL, 0);
|
||||
Status = ((EFI_IMAGE_ENTRY_POINT)(UINTN)DriverEntry->ImageEntryPoint)(DriverEntry->ImageHandle, gST);
|
||||
PERF_END (DriverEntry->ImageHandle, "StartImage:", NULL, 0);
|
||||
if (EFI_ERROR(Status)){
|
||||
UnregisterSmramProfileImage (DriverEntry, TRUE);
|
||||
SmmFreePages(DriverEntry->ImageBuffer, DriverEntry->NumberOfPage);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user