]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.c
OvmfPkg: PlatformPei: clear CMOS 0xF after setting mBootMode
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.c
index 9970d1479e611b7fb574ca22034702e2b82add71..2cc4c7e973627e2b3ad8d98d276abd8c9ff57241 100644 (file)
@@ -322,6 +322,7 @@ BootModeInitialization (
   if (CmosRead8 (0xF) == 0xFE) {\r
     mBootMode = BOOT_ON_S3_RESUME;\r
   }\r
+  CmosWrite8 (0xF, 0x00);\r
 \r
   Status = PeiServicesSetBootMode (mBootMode);\r
   ASSERT_EFI_ERROR (Status);\r