OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest OPTIONAL\r
)\r
{\r
- EFI_STATUS Status;\r
- UI_MENU_SELECTION *Selection;\r
- UINTN Index;\r
- FORM_BROWSER_FORMSET *FormSet;\r
+ EFI_STATUS Status;\r
+ UI_MENU_SELECTION *Selection;\r
+ UINTN Index;\r
+ FORM_BROWSER_FORMSET *FormSet;\r
+ EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;\r
\r
Status = EFI_SUCCESS;\r
ZeroMem (&gScreenDimensions, sizeof (EFI_SCREEN_DESCRIPTOR));\r
// Ensure we are in Text mode\r
//\r
gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));\r
- DisableQuietBoot ();\r
+\r
+ Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);\r
+ if (EFI_ERROR (Status)) {\r
+ return Status;\r
+ }\r
+ //\r
+ // Set console control to text mode.\r
+ //\r
+ ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenText);\r
\r
for (Index = 0; Index < HandleCount; Index++) {\r
Selection = AllocateZeroPool (sizeof (UI_MENU_SELECTION));\r
\r
} while (Selection->Action == UI_ACTION_REFRESH_FORMSET);\r
\r
- gBS->FreePool (Selection);\r
+ FreePool (Selection);\r
}\r
\r
if (ActionRequest != NULL) {\r
if (*ResultsDataSize < BufferSize) {\r
*ResultsDataSize = BufferSize;\r
\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
return EFI_BUFFER_TOO_SMALL;\r
}\r
\r
*ResultsDataSize = BufferSize;\r
CopyMem (ResultsData, StrPtr, BufferSize);\r
\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
} else {\r
//\r
// Prepare <ConfigResp>\r
Status = HiiLibGetString (HiiHandle, Token, String, &BufferLength);\r
\r
if (Status == EFI_BUFFER_TOO_SMALL) {\r
- gBS->FreePool (String);\r
+ FreePool (String);\r
String = AllocateZeroPool (BufferLength);\r
ASSERT (String != NULL);\r
\r
StrCpy (NewString, *Dest);\r
StrCat (NewString, Src);\r
\r
- gBS->FreePool (*Dest);\r
+ FreePool (*Dest);\r
*Dest = NewString;\r
}\r
\r
Status = HexStringToBuf (Dst, &StorageWidth, Value, NULL);\r
}\r
\r
- gBS->FreePool (Value);\r
+ FreePool (Value);\r
}\r
} else {\r
//\r
Value = Value + 6;\r
}\r
if (*Value != '=') {\r
- gBS->FreePool (Result);\r
+ FreePool (Result);\r
return EFI_NOT_FOUND;\r
}\r
//\r
} else {\r
Status = HexStringToBuf (Dst, &StorageWidth, Value, NULL);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Result);\r
+ FreePool (Result);\r
return Status;\r
}\r
}\r
} else {\r
SetValueByName (Storage, Question->VariableName, Value);\r
}\r
- gBS->FreePool (Result);\r
+ FreePool (Result);\r
}\r
\r
return Status;\r
}\r
\r
Status = SetValueByName (Storage, Question->VariableName, Value);\r
- gBS->FreePool (Value);\r
+ FreePool (Value);\r
}\r
\r
if (!Cached) {\r
&Progress\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
return Status;\r
}\r
}\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
\r
//\r
// Synchronize shadow Buffer\r
do {\r
CreateDialog (4, TRUE, 0, NULL, &Key, gEmptyString, PopUp, gPressEnter, gEmptyString);\r
} while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);\r
- gBS->FreePool (PopUp);\r
+ FreePool (PopUp);\r
}\r
\r
return EFI_NOT_READY;\r
&Progress\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
return Status;\r
}\r
}\r
- gBS->FreePool (ConfigResp);\r
+ FreePool (ConfigResp);\r
\r
//\r
// Config success, update storage shadow Buffer\r
}\r
\r
Status = ConfigRespToStorage (Storage, Result);\r
- gBS->FreePool (Result);\r
+ FreePool (Result);\r
return Status;\r
}\r
\r
//\r
// Form package not found in this Package List\r
//\r
- gBS->FreePool (HiiPackageList);\r
+ FreePool (HiiPackageList);\r
return EFI_NOT_FOUND;\r
}\r
\r
*BinaryLength = PackageHeader.Length - Offset2;\r
*BinaryData = AllocateCopyPool (*BinaryLength, OpCodeData);\r
\r
- gBS->FreePool (HiiPackageList);\r
+ FreePool (HiiPackageList);\r
\r
if (*BinaryData == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r