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:
xli24
2008-09-02 12:06:14 +00:00
parent 3ffe97a634
commit 8d9a52eba8
6 changed files with 0 additions and 57 deletions

View File

@ -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