]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/BdsDxe/FrontPage.c
Fix a typo in Pcd name
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / FrontPage.c
index ed9609d2552175bf1acabecddd5c1c9b1c32a966..3eb4a53ff1ad9cf776df3de966795c363a2137cb 100644 (file)
@@ -179,7 +179,7 @@ FrontPageCallback (
                     Lang\r
                     );\r
 \r
-    if (!FeaturePcdGet (PcdUefiVariableDefaultLangDepricate)) {\r
+    if (!FeaturePcdGet (PcdUefiVariableDefaultLangDeprecate)) {\r
       //\r
       // Set UEFI deprecated variable "Lang" for backwards compatibility\r
       //\r
@@ -447,9 +447,6 @@ InitializeFrontPage (
 /**\r
   Call the browser and display the front page\r
 \r
-\r
-  @param VOID            No input.\r
-\r
   @return   Status code that will be returned by\r
             EFI_FORM_BROWSER2_PROTOCOL.SendForm ().\r
 \r
@@ -470,12 +467,6 @@ CallFrontPage (
     (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
@@ -493,7 +484,6 @@ CallFrontPage (
     EnableResetRequired ();\r
   }\r
 \r
-  gBS->RaiseTPL (TPL_APPLICATION);\r
   return Status;\r
 }\r
 \r
@@ -567,14 +557,12 @@ ConvertProcessorToString (
 }\r
 \r
 /**\r
-  Convert Memory Size to a string\r
+  Convert Memory Size to a string.\r
 \r
 \r
   @param MemorySize      - The size of the memory to process\r
   @param String          - The string that is created\r
 \r
-  @return VOID.\r
-\r
 **/\r
 VOID\r
 ConvertMemorySizeToString (\r
@@ -721,7 +709,7 @@ WaitForSingleEvent (
   EFI_EVENT   TimerEvent;\r
   EFI_EVENT   WaitList[2];\r
 \r
-  if (Timeout) {\r
+  if (Timeout != 0) {\r
     //\r
     // Create a timer event\r
     //\r
@@ -888,16 +876,18 @@ PlatformBdsEnterFrontPage (
   }\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
@@ -980,9 +970,7 @@ PlatformBdsEnterFrontPage (
   //\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