Remove unnecessary TPL operations in BDS module & library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5779 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -327,7 +327,6 @@ HotkeyCallback (
|
||||
BDS_COMMON_OPTION *BootOption;
|
||||
UINTN ExitDataSize;
|
||||
CHAR16 *ExitData;
|
||||
EFI_TPL OldTpl;
|
||||
EFI_STATUS Status;
|
||||
EFI_KEY_DATA *HotkeyData;
|
||||
|
||||
@ -402,18 +401,10 @@ HotkeyCallback (
|
||||
//
|
||||
gST->ConOut->Reset (gST->ConOut, FALSE);
|
||||
|
||||
//
|
||||
// BdsLibBootViaBootOption() is expected to be invoked at TPL level TPL_APPLICATION,
|
||||
// so raise the TPL to TPL_APPLICATION first, then restore it
|
||||
//
|
||||
OldTpl = gBS->RaiseTPL (TPL_APPLICATION);
|
||||
|
||||
mHotkeyCallbackPending = TRUE;
|
||||
Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);
|
||||
mHotkeyCallbackPending = FALSE;
|
||||
|
||||
gBS->RestoreTPL (OldTpl);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
//
|
||||
// Call platform action to indicate the boot fail
|
||||
|
Reference in New Issue
Block a user