/* This routine is entry point of ScriptSave driver. */
EFI_STATUS EFIAPI InitializeSmmS3SaveState(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* This routine is entry point of ScriptSave driver. */
EFI_STATUS EFIAPI InitializeSmmS3SaveState(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  EFI_HANDLE  Handle;
  if (!PcdGetBool (PcdAcpiS3Enable)) {
    return EFI_UNSUPPORTED;
  }
  Handle = NULL;
  return gSmst->SmmInstallProtocolInterface (
                  &Handle,
                  &gEfiS3SmmSaveStateProtocolGuid,
                  EFI_NATIVE_INTERFACE,
                  &mS3SmmSaveState
                  );
}