/** @file
S3NvramSave.c -- S3NvramSave
Auto-converted from IDA decompiler output.
Functions: 1
Copyright (c) HR650X BIOS Decompilation Project
**/
#include "S3NvramSave.h"
// Function: ModuleEntryPoint
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
gImageHandle = ImageHandle;
if ( !ImageHandle )
ValidateGlobalPointers(
"e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
51,
"gImageHandle != ((void *) 0)");
gSystemTable = SystemTable;
if ( !SystemTable )
ValidateGlobalPointers(
"e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
57,
"gST != ((void *) 0)");
BootServices = SystemTable->BootServices;
if ( !BootServices )
ValidateGlobalPointers(
"e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
63,
"gBS != ((void *) 0)");
RuntimeServices = SystemTable->RuntimeServices;
if ( !RuntimeServices )
ValidateGlobalPointers(
"e:\\hs\\MdePkg\\Library\\UefiRuntimeServicesTableLib\\UefiRuntimeServicesTableLib.c",
47,
"gRT != ((void *) 0)");
InitializeS3NvramSave();
ReturnS3NvramSaveStatus();
return 0;
}