]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/BdsDxe/Hotkey.c
Remove over specific information from BdsDxe module.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / Hotkey.c
index 9ad5009537a79058b8460f2333e5dfb306215f8a..387c6d6a48b45c267f98adc5188c631060af1f19 100644 (file)
@@ -327,7 +327,6 @@ HotkeyCallback (
   BDS_COMMON_OPTION  *BootOption;\r
   UINTN              ExitDataSize;\r
   CHAR16             *ExitData;\r
-  EFI_TPL            OldTpl;\r
   EFI_STATUS         Status;\r
   EFI_KEY_DATA       *HotkeyData;\r
 \r
@@ -402,18 +401,10 @@ HotkeyCallback (
       //\r
       gST->ConOut->Reset (gST->ConOut, FALSE);\r
 \r
-      //\r
-      // BdsLibBootViaBootOption() is expected to be invoked at TPL level TPL_APPLICATION,\r
-      // so raise the TPL to TPL_APPLICATION first, then restore it\r
-      //\r
-      OldTpl = gBS->RaiseTPL (TPL_APPLICATION);\r
-\r
       mHotkeyCallbackPending = TRUE;\r
       Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);\r
       mHotkeyCallbackPending = FALSE;\r
 \r
-      gBS->RestoreTPL (OldTpl);\r
-\r
       if (EFI_ERROR (Status)) {\r
         //\r
         // Call platform action to indicate the boot fail\r