summaryrefslogtreecommitdiff
path: root/DuetPkg/Library
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 06:34:15 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 06:34:15 +0000
commit73bea262b18626f8810597f9d6dc6fe822f153e3 (patch)
tree867ac14cfddb7dec87926a97f29a7d3fe57027c5 /DuetPkg/Library
parente74f510b46e3f25f0ebd17e1d1fdacc95d7de0c1 (diff)
downloadedk2-platforms-73bea262b18626f8810597f9d6dc6fe822f153e3.tar.xz
DUET BDS clean up.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9988 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/Library')
-rw-r--r--DuetPkg/Library/DuetBdsLib/BdsPlatform.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
index 00f735fc55..35ea4fd218 100644
--- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
+++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
@@ -1174,11 +1174,8 @@ Returns:
EFI_STATUS Status;
UINT16 Timeout;
EFI_EVENT UserInputDurationTime;
- LIST_ENTRY *Link;
- BDS_COMMON_OPTION *BootOption;
UINTN Index;
EFI_INPUT_KEY Key;
- EFI_TPL OldTpl;
EFI_BOOT_MODE BootMode;
//
@@ -1271,36 +1268,11 @@ Returns:
//
// To give the User a chance to enter Setup here, if user set TimeOut is 0.
// BDS should still give user a chance to enter Setup
- //
- // Connect first boot option, and then check user input before exit
- //
- for (Link = BootOptionList->ForwardLink; Link != BootOptionList;Link = Link->ForwardLink) {
- BootOption = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);
- if (!IS_LOAD_OPTION_TYPE (BootOption->Attribute, LOAD_OPTION_ACTIVE)) {
- //
- // skip the header of the link list, becuase it has no boot option
- //
- continue;
- } else {
- //
- // Make sure the boot option device path connected, but ignore the BBS device path
- //
- if (DevicePathType (BootOption->DevicePath) != BBS_DEVICE_PATH) {
- BdsLibConnectDevicePath (BootOption->DevicePath);
- }
- break;
- }
- }
-
- //
// Check whether the user input after the duration time has expired
//
- OldTpl = EfiGetCurrentTpl();
- gBS->RestoreTPL (TPL_APPLICATION);
gBS->WaitForEvent (1, &UserInputDurationTime, &Index);
gBS->CloseEvent (UserInputDurationTime);
Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
- gBS->RaiseTPL (OldTpl);
if (!EFI_ERROR (Status)) {
//