/* Initialize SMM profile in SmmReadyToLock protocol callback function. */
EFI_STATUS EFIAPI InitSmmProfileCallBack(IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle)
/* Initialize SMM profile in SmmReadyToLock protocol callback function. */
EFI_STATUS EFIAPI InitSmmProfileCallBack(IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle)
{
  gRT->SetVariable (
         SMM_PROFILE_NAME,
         &gEfiCallerIdGuid,
         EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
         sizeof (mSmmProfileBase),
         &mSmmProfileBase
         );
  GetSmiCommandPort ();
  InitProtectedMemRange ();
  return EFI_SUCCESS;
}