{\r
EFI_HANDLE Handle;\r
EFI_STATUS Status;\r
+ UINT16 FrontPageTimeout;\r
RETURN_STATUS PcdStatus;\r
\r
DEBUG ((EFI_D_INFO, "PlatformBootManagerBeforeConsole\n"));\r
\r
PlatformInitializeConsole (\r
XenDetected() ? gXenPlatformConsole : gPlatformConsole);\r
- PcdStatus = PcdSet16S (PcdPlatformBootTimeOut,\r
- GetFrontPageTimeoutFromQemu ());\r
+\r
+ FrontPageTimeout = GetFrontPageTimeoutFromQemu ();\r
+ PcdStatus = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);\r
ASSERT_RETURN_ERROR (PcdStatus);\r
+ //\r
+ // Reflect the PCD in the standard Timeout variable.\r
+ //\r
+ Status = gRT->SetVariable (\r
+ EFI_TIME_OUT_VARIABLE_NAME,\r
+ &gEfiGlobalVariableGuid,\r
+ (EFI_VARIABLE_NON_VOLATILE |\r
+ EFI_VARIABLE_BOOTSERVICE_ACCESS |\r
+ EFI_VARIABLE_RUNTIME_ACCESS),\r
+ sizeof FrontPageTimeout,\r
+ &FrontPageTimeout\r
+ );\r
+ DEBUG ((\r
+ EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,\r
+ "%a: SetVariable(%s, %u): %r\n",\r
+ __FUNCTION__,\r
+ EFI_TIME_OUT_VARIABLE_NAME,\r
+ FrontPageTimeout,\r
+ Status\r
+ ));\r
\r
PlatformRegisterOptionsAndKeys ();\r
\r