OvmfPkg/PlatformPei: Add mBootMode driver variable

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15291 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jordan Justen 2014-03-04 08:01:40 +00:00 committed by jljusten
parent 8f5ca05b0d
commit 979420df98
2 changed files with 7 additions and 5 deletions

View File

@ -59,6 +59,9 @@ EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[] = {
};
EFI_BOOT_MODE mBootMode = BOOT_WITH_FULL_CONFIGURATION;
VOID
AddIoMemoryBaseSizeHob (
EFI_PHYSICAL_ADDRESS MemoryBase,
@ -269,16 +272,13 @@ BootModeInitialization (
VOID
)
{
EFI_BOOT_MODE BootMode;
EFI_STATUS Status;
if (CmosRead8 (0xF) == 0xFE) {
BootMode = BOOT_ON_S3_RESUME;
} else {
BootMode = BOOT_WITH_FULL_CONFIGURATION;
mBootMode = BOOT_ON_S3_RESUME;
}
Status = PeiServicesSetBootMode (BootMode);
Status = PeiServicesSetBootMode (mBootMode);
ASSERT_EFI_ERROR (Status);
Status = PeiServicesInstallPpi (mPpiBootMode);

View File

@ -96,4 +96,6 @@ XenPublishRamRegions (
VOID
);
extern EFI_BOOT_MODE mBootMode;
#endif // _PLATFORM_PEI_H_INCLUDED_