/** @file\r
- The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements \r
- of the UEFI specification as it is designed to implement an embedded systmes \r
+ The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements\r
+ of the UEFI specification as it is designed to implement an embedded systmes\r
propriatary boot scheme.\r
\r
- This template assume a DXE driver produces a SerialIo protocol not using the EFI \r
+ This template assume a DXE driver produces a SerialIo protocol not using the EFI\r
driver module and it will attempt to connect a console on top of this.\r
\r
- \r
- Copyright (c) 2009 Apple, Inc. All rights reserved. \r
- Portions copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
\r
+ Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r
\r
- This document is the property of Apple, Inc.\r
- It is considered confidential and proprietary.\r
- \r
- This document may not be reproduced or transmitted in any form,\r
- in whole or in part, without the express written permission of\r
- Apple, Inc.\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
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
UINTN UiStringLen;\r
CHAR16 *UiSection;\r
UINT32 Authentication;\r
- \r
- \r
+\r
+\r
UiStringLen = 0;\r
if (UiString != NULL) {\r
DEBUG ((DEBUG_ERROR, "UiString %s\n", UiString));\r
UiStringLen = StrLen (UiString);\r
}\r
- \r
+\r
Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiFirmwareVolume2ProtocolGuid, NULL, &NoHandles, &Buffer);\r
if (!EFI_ERROR (Status)) {\r
for (Index = 0; Index < NoHandles; Index++) {\r
Key = AllocatePool (Fv->KeySize);\r
ASSERT (Key != NULL);\r
ZeroMem (Key, Fv->KeySize);\r
- \r
+\r
FileType = EFI_FV_FILETYPE_APPLICATION;\r
- \r
+\r
do {\r
NextStatus = Fv->GetNextFile (Fv, Key, &FileType, NameGuid, &Attributes, &Size);\r
if (!EFI_ERROR (NextStatus)) {\r
FreePool (Key);\r
return Status;\r
}\r
- \r
+\r
UiSection = NULL;\r
Status = Fv->ReadSection (\r
- Fv, \r
- NameGuid, \r
- EFI_SECTION_USER_INTERFACE, \r
+ Fv,\r
+ NameGuid,\r
+ EFI_SECTION_USER_INTERFACE,\r
0,\r
(VOID **)&UiSection,\r
&Size,\r
if (!EFI_ERROR (Status)) {\r
if (StrnCmp (UiString, UiSection, UiStringLen) == 0) {\r
//\r
- // We found a UiString match. \r
+ // We found a UiString match.\r
//\r
*FvHandle = Buffer[Index];\r
FreePool (Key);\r
}\r
}\r
} while (!EFI_ERROR (NextStatus));\r
- \r
+\r
FreePool (Key);\r
}\r
}\r
- \r
+\r
FreePool (Buffer);\r
}\r
\r
IN EFI_HANDLE FvHandle,\r
IN EFI_GUID *NameGuid\r
)\r
-{ \r
+{\r
EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH NewNode;\r
\r
DevicePath = DevicePathFromHandle (FvHandle);\r
\r
EfiInitializeFwVolDevicepathNode (&NewNode, NameGuid);\r
- \r
+\r
return AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&NewNode);\r
}\r
\r
\r
EFI_STATUS\r
LoadPeCoffSectionFromFv (\r
- IN EFI_HANDLE FvHandle, \r
+ IN EFI_HANDLE FvHandle,\r
IN EFI_GUID *NameGuid\r
)\r
{\r
EFI_HANDLE ImageHandle;\r
\r
DevicePath = FvFileDevicePath (FvHandle, NameGuid);\r
- \r
+\r
Status = gBS->LoadImage (TRUE, gImageHandle, DevicePath, NULL, 0, &ImageHandle);\r
if (!EFI_ERROR (Status)) {\r
+ PERF_END (NULL, "BDS", NULL, 0);\r
Status = gBS->StartImage (ImageHandle, NULL, NULL);\r
}\r
- \r
+\r
return Status;\r
}\r
- \r
+\r