]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
OvmfPkg: PlatformBdsLib: get front page timeout from QEMU
[mirror_edk2.git] / OvmfPkg / Library / PlatformBdsLib / BdsPlatform.c
index 341f5c15963d2605c5fd2681032657a6636b11f7..1e87820e93cf0b6d9eda9d9197cecae41023321a 100644 (file)
@@ -1185,7 +1185,6 @@ Returns:
 --*/\r
 {\r
   EFI_STATUS                         Status;\r
-  UINT16                             Timeout;\r
   EFI_BOOT_MODE                      BootMode;\r
 \r
   DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior\n"));\r
@@ -1203,11 +1202,6 @@ Returns:
     PlatformBdsRestoreNvVarsFromHardDisk ();\r
   }\r
 \r
-  //\r
-  // Init the time out value\r
-  //\r
-  Timeout = PcdGet16 (PcdPlatformBootTimeOut);\r
-\r
   //\r
   // Load the driver option as the driver option list\r
   //\r
@@ -1261,7 +1255,7 @@ Returns:
   //\r
   BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");\r
 \r
-  PlatformBdsEnterFrontPage (Timeout, TRUE);\r
+  PlatformBdsEnterFrontPage (GetFrontPageTimeoutFromQemu(), TRUE);\r
 }\r
 \r
 VOID\r