Load option library functions which relate with creating and processing load options.\r
\r
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<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
LoadOptionType == LoadOptionTypeSysPrep);\r
\r
GetEfiGlobalVariable2 (mBmLoadOptionOrderName[LoadOptionType], (VOID **) &OptionOrder, &OptionOrderSize);\r
+ ASSERT ((OptionOrder != NULL && OptionOrderSize != 0) || (OptionOrder == NULL && OptionOrderSize == 0));\r
+\r
BootNext = NULL;\r
if (LoadOptionType == LoadOptionTypeBoot) {\r
GetEfiGlobalVariable2 (L"BootNext", (VOID**) &BootNext, NULL);\r
// Update the option order variable\r
//\r
GetEfiGlobalVariable2 (OptionOrderName, (VOID **) &OptionOrder, &OptionOrderSize);\r
+ ASSERT ((OptionOrder != NULL && OptionOrderSize != 0) || (OptionOrder == NULL && OptionOrderSize == 0));\r
\r
Status = EFI_SUCCESS;\r
for (Index = 0; Index < OptionOrderSize / sizeof (UINT16); Index++) {\r
@retval 0 ~ Count-1 The index of the Key in the Array.\r
**/\r
INTN\r
-BmFindLoadOption (\r
+EFIAPI\r
+EfiBootManagerFindLoadOption (\r
IN CONST EFI_BOOT_MANAGER_LOAD_OPTION *Key,\r
IN CONST EFI_BOOT_MANAGER_LOAD_OPTION *Array,\r
IN UINTN Count\r
// If the associated *Order exists, just remove the reference in *Order.\r
//\r
GetEfiGlobalVariable2 (mBmLoadOptionOrderName[OptionType], (VOID **) &OptionOrder, &OptionOrderSize);\r
+ ASSERT ((OptionOrder != NULL && OptionOrderSize != 0) || (OptionOrder == NULL && OptionOrderSize == 0));\r
+\r
for (Index = 0; Index < OptionOrderSize / sizeof (UINT16); Index++) {\r
if (OptionOrder[Index] == OptionNumber) {\r
OptionOrderSize -= sizeof (UINT16);\r