/** @file\r
Variable operation that will be used by bootmaint\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
break;\r
}\r
}\r
+ ASSERT (LegacyDeviceContext != NULL);\r
+\r
//\r
// Update the Variable "LegacyDevOrder"\r
//\r
\r
UINT16 mKeyInput;\r
EFI_GUID mBootManagerGuid = BOOT_MANAGER_FORMSET_GUID;\r
-LIST_ENTRY *mBootOptionsList;\r
+LIST_ENTRY mBootOptionsList;\r
BDS_COMMON_OPTION *gOption;\r
\r
HII_VENDOR_DEVICE_PATH mBootManagerHiiVendorDevicePath = {\r
//\r
KeyCount = 0;\r
\r
- for (Link = mBootOptionsList->ForwardLink; Link != mBootOptionsList; Link = Link->ForwardLink) {\r
+ for (Link = GetFirstNode (&mBootOptionsList); !IsNull (&mBootOptionsList, Link); Link = GetNextNode (&mBootOptionsList, Link)) {\r
Option = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);\r
\r
KeyCount++;\r
UINTN ExitDataSize;\r
EFI_STRING_ID Token;\r
EFI_INPUT_KEY Key;\r
- LIST_ENTRY BdsBootOptionList;\r
CHAR16 *HelpString;\r
EFI_STRING_ID HelpToken;\r
UINT16 *TempStr;\r
EFI_IFR_GUID_LABEL *EndLabel;\r
\r
gOption = NULL;\r
- InitializeListHead (&BdsBootOptionList);\r
+ InitializeListHead (&mBootOptionsList);\r
\r
//\r
// Connect all prior to entering the platform setup menu.\r
BdsLibConnectAllDriversToAllControllers ();\r
gConnectAllHappened = TRUE;\r
}\r
- //\r
- // BugBug: Here we can not remove the legacy refresh macro, so we need\r
- // get the boot order every time from "BootOrder" variable.\r
- // Recreate the boot option list base on the BootOrder variable\r
- //\r
- BdsLibEnumerateAllBootOption (&BdsBootOptionList);\r
\r
- mBootOptionsList = &BdsBootOptionList;\r
+ BdsLibEnumerateAllBootOption (&mBootOptionsList);\r
\r
HiiHandle = gBootManagerPrivate.HiiHandle;\r
\r
\r
mKeyInput = 0;\r
\r
- for (Link = BdsBootOptionList.ForwardLink; Link != &BdsBootOptionList; Link = Link->ForwardLink) {\r
+ for (Link = GetFirstNode (&mBootOptionsList); !IsNull (&mBootOptionsList, Link); Link = GetNextNode (&mBootOptionsList, Link)) {\r
Option = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);\r
\r
//\r
Provides a way for 3rd party applications to register themselves for launch by the\r
Boot Manager based on hot key\r
\r
-Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
&gEfiGlobalVariableGuid,\r
&TempOptionSize\r
);\r
+ ASSERT (TempOption != NULL);\r
\r
if (CompareMem (TempOption, KeyOption, TempOptionSize) == 0) {\r
//\r