summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/BdsDxe
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 12:06:14 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 12:06:14 +0000
commit8d9a52eba8613a3580dd853fc83a57c41fa6728c (patch)
treed786d9b8d6cc9b5236348507d7cf47d201781a0c /MdeModulePkg/Universal/BdsDxe
parent3ffe97a634c075ed51fb8eaf61ccb77515538e4e (diff)
downloadedk2-platforms-8d9a52eba8613a3580dd853fc83a57c41fa6728c.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Universal/BdsDxe')
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c10
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c4
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c16
-rw-r--r--MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c7
-rw-r--r--MdeModulePkg/Universal/BdsDxe/FrontPage.c11
-rw-r--r--MdeModulePkg/Universal/BdsDxe/Hotkey.c9
6 files changed, 0 insertions, 57 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
index 03b3818167..fffcd68140 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
@@ -1250,20 +1250,10 @@ BdsStartBootMaint (
BdsLibEnumerateAllBootOption (&BdsBootOptionList);
//
- // Drop the TPL level from TPL_APPLICATION to TPL_APPLICATION
- //
- gBS->RestoreTPL (TPL_APPLICATION);
-
- //
// Init the BMM
//
Status = InitializeBM ();
- //
- // Raise the TPL level back to TPL_APPLICATION
- //
- gBS->RaiseTPL (TPL_APPLICATION);
-
return Status;
}
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c
index ff3d42f00d..3de4a0d687 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c
@@ -174,14 +174,10 @@ BootThisFile (
//
gST->ConOut->ClearScreen (gST->ConOut);
- gBS->RaiseTPL (TPL_APPLICATION);
-
ExitDataSize = 0;
Status = BdsLibBootViaBootOption (Option, Option->DevicePath, &ExitDataSize, &ExitData);
- gBS->RestoreTPL (TPL_APPLICATION);
-
return Status;
}
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c b/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
index c3ef654bf1..459a396a69 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
@@ -255,11 +255,6 @@ CallBootManager (
);
FreePool (UpdateData.Data);
- //
- // Drop the TPL level from TPL_APPLICATION to TPL_APPLICATION
- //
- gBS->RestoreTPL (TPL_APPLICATION);
-
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
Status = gFormBrowser2->SendForm (
gFormBrowser2,
@@ -275,7 +270,6 @@ CallBootManager (
}
if (gOption == NULL) {
- gBS->RaiseTPL (TPL_APPLICATION);
return ;
}
@@ -285,11 +279,6 @@ CallBootManager (
SetupResetReminder ();
//
- // Raise the TPL level back to TPL_APPLICATION
- //
- gBS->RaiseTPL (TPL_APPLICATION);
-
- //
// parse the selected option
//
Status = BdsLibBootViaBootOption (gOption, gOption->DevicePath, &ExitDataSize, &ExitData);
@@ -304,11 +293,6 @@ CallBootManager (
gST->ConOut,
GetStringById (STRING_TOKEN (STR_ANY_KEY_CONTINUE))
);
- gBS->RestoreTPL (TPL_APPLICATION);
- //
- // BdsLibUiWaitForSingleEvent (gST->ConIn->WaitForKey, 0);
- //
- gBS->RaiseTPL (TPL_APPLICATION);
gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
}
}
diff --git a/MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c b/MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c
index c030d1319e..5621efde6f 100644
--- a/MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c
+++ b/MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c
@@ -348,11 +348,6 @@ CallDeviceManager (
&UpdateData[0]
);
- //
- // Drop the TPL level from TPL_APPLICATION to TPL_APPLICATION
- //
- gBS->RestoreTPL (TPL_APPLICATION);
-
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
Status = gFormBrowser2->SendForm (
gFormBrowser2,
@@ -412,7 +407,5 @@ CallDeviceManager (
}
FreePool (HiiHandles);
- gBS->RaiseTPL (TPL_APPLICATION);
-
return Status;
}
diff --git a/MdeModulePkg/Universal/BdsDxe/FrontPage.c b/MdeModulePkg/Universal/BdsDxe/FrontPage.c
index 914f177ed6..75c9f91375 100644
--- a/MdeModulePkg/Universal/BdsDxe/FrontPage.c
+++ b/MdeModulePkg/Universal/BdsDxe/FrontPage.c
@@ -467,12 +467,6 @@ CallFrontPage (
(EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_INPUT_WAIT)
);
-
- //
- // Drop the TPL level from TPL_APPLICATION to TPL_APPLICATION
- //
- gBS->RestoreTPL (TPL_APPLICATION);
-
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
Status = gFormBrowser2->SendForm (
gFormBrowser2,
@@ -490,7 +484,6 @@ CallFrontPage (
EnableResetRequired ();
}
- gBS->RaiseTPL (TPL_APPLICATION);
return Status;
}
@@ -883,9 +876,7 @@ PlatformBdsEnterFrontPage (
}
if (TimeoutDefault != 0xffff) {
- gBS->RestoreTPL (TPL_APPLICATION);
Status = ShowProgress (TimeoutDefault);
- gBS->RaiseTPL (TPL_APPLICATION);
//
// Ensure screen is clear when switch Console from Graphics mode to Text mode
@@ -979,9 +970,7 @@ PlatformBdsEnterFrontPage (
//
//Will leave browser, check any reset required change is applied? if yes, reset system
//
- gBS->RestoreTPL (TPL_APPLICATION);
SetupResetReminder ();
- gBS->RaiseTPL (TPL_APPLICATION);
Exit:
//
diff --git a/MdeModulePkg/Universal/BdsDxe/Hotkey.c b/MdeModulePkg/Universal/BdsDxe/Hotkey.c
index 9ad5009537..387c6d6a48 100644
--- a/MdeModulePkg/Universal/BdsDxe/Hotkey.c
+++ b/MdeModulePkg/Universal/BdsDxe/Hotkey.c
@@ -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