Skip to content

Commit

Permalink
Merge branch 'master' into check_if_MM_core_FV_in_bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 20, 2024
2 parents 2407960 + e8ce6c5 commit 9b8d59b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ InitSmmProfileInternal (
UINTN MsrDsAreaSizePerCpu;
UINT64 SmmProfileSize;

Status = EFI_SUCCESS;
mPFEntryCount = (UINTN *)AllocateZeroPool (sizeof (UINTN) * mMaxNumberOfCpus);
ASSERT (mPFEntryCount != NULL);
mLastPFEntryValue = (UINT64 (*)[MAX_PF_ENTRY_COUNT])AllocateZeroPool (
Expand Down Expand Up @@ -840,12 +841,14 @@ InitSmmProfileInternal (
//
// Start SMM profile when SmmReadyToLock protocol is installed.
//
Status = gMmst->MmRegisterProtocolNotify (
&gEfiSmmReadyToLockProtocolGuid,
InitSmmProfileCallBack,
&Registration
);
ASSERT_EFI_ERROR (Status);
if (!mIsStandaloneMm) {
Status = gMmst->MmRegisterProtocolNotify (
&gEfiSmmReadyToLockProtocolGuid,
InitSmmProfileCallBack,
&Registration
);
ASSERT_EFI_ERROR (Status);
}

return;
}
Expand Down

0 comments on commit 9b8d59b

Please sign in to comment.