/* This is the Event call back function is triggered in SMM to notify the Library the system is entering runtime phase. */
EFI_STATUS EFIAPI S3BootScriptSmmAtRuntimeCallBack(IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle)
/* This is the Event call back function is triggered in SMM to notify the Library the system is entering runtime phase. */
EFI_STATUS EFIAPI S3BootScriptSmmAtRuntimeCallBack(IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle)
{
  if (!mS3BootScriptTablePtr->AtRuntime) {
    mS3BootScriptTablePtr->BootTimeScriptLength = (UINT32)(mS3BootScriptTablePtr->TableLength + sizeof (EFI_BOOT_SCRIPT_TERMINATE));
    SaveBootTimeDataToLockBox ();
    mS3BootScriptTablePtr->AtRuntime = TRUE;
    SaveSmmPriviateDataToLockBoxAtRuntime ();
  }
  return EFI_SUCCESS;
}