/* Because there may be INSERT boot script at runtime in SMM. The boot time copy will be used to restore data after back from S3. Otherwise the data inserted may cause some boot time boot script data lost if only BootScriptData used.  */
VOID SaveBootTimeDataToLockBox(VOID)
/* Because there may be INSERT boot script at runtime in SMM. The boot time copy will be used to restore data after back from S3. Otherwise the data inserted may cause some boot time boot script data lost if only BootScriptData used.  */
VOID SaveBootTimeDataToLockBox(VOID)
{
  EFI_STATUS  Status;
  Status = RestoreLockBox (
             &mBootScriptDataGuid,
             NULL,
             NULL
             );
  ASSERT_EFI_ERROR (Status);
  Status = SaveLockBox (
             &mBootScriptDataBootTimeGuid,
             (VOID *)mS3BootScriptTablePtr->TableBase,
             mS3BootScriptTablePtr->BootTimeScriptLength
             );
  ASSERT_EFI_ERROR (Status);
}