Lang\r
);\r
\r
- if (!FeaturePcdGet (PcdUefiVariableDefaultLangDepricate)) {\r
+ if (!FeaturePcdGet (PcdUefiVariableDefaultLangDeprecate)) {\r
//\r
// Set UEFI deprecated variable "Lang" for backwards compatibility\r
//\r
(EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_INPUT_WAIT)\r
);\r
\r
-\r
- //\r
- // Drop the TPL level from TPL_APPLICATION to TPL_APPLICATION\r
- //\r
- gBS->RestoreTPL (TPL_APPLICATION);\r
-\r
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;\r
Status = gFormBrowser2->SendForm (\r
gFormBrowser2,\r
EnableResetRequired ();\r
}\r
\r
- gBS->RaiseTPL (TPL_APPLICATION);\r
return Status;\r
}\r
\r
}\r
\r
if (TimeoutDefault != 0xffff) {\r
- gBS->RestoreTPL (TPL_APPLICATION);\r
Status = ShowProgress (TimeoutDefault);\r
- gBS->RaiseTPL (TPL_APPLICATION);\r
+\r
+ //\r
+ // Ensure screen is clear when switch Console from Graphics mode to Text mode\r
+ //\r
+ gST->ConOut->EnableCursor (gST->ConOut, TRUE);\r
+ gST->ConOut->ClearScreen (gST->ConOut);\r
\r
if (EFI_ERROR (Status)) {\r
//\r
// Timeout or user press enter to continue\r
//\r
- gST->ConOut->EnableCursor (gST->ConOut, TRUE);\r
- gST->ConOut->ClearScreen (gST->ConOut);\r
goto Exit;\r
}\r
}\r
//\r
//Will leave browser, check any reset required change is applied? if yes, reset system\r
//\r
- gBS->RestoreTPL (TPL_APPLICATION);\r
SetupResetReminder ();\r
- gBS->RaiseTPL (TPL_APPLICATION);\r
\r
Exit:\r
//\r