VOID\r
);\r
\r
-EFI_STATUS\r
-BdsLibGetBootMode (\r
- OUT EFI_BOOT_MODE *BootMode\r
- );\r
-\r
VOID\r
BdsLibLoadDrivers (\r
IN LIST_ENTRY *BdsDriverLists\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. 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
);\r
\r
if (!EFI_ERROR (Status)) {\r
- gBS->HandleProtocol (ImageHandle, &gEfiLoadedImageProtocolGuid,
+ gBS->HandleProtocol (ImageHandle, &gEfiLoadedImageProtocolGuid,\r
(VOID **)&ImageInfo);\r
\r
//\r
return EFI_SUCCESS;\r
}\r
\r
-EFI_STATUS\r
-BdsLibGetBootMode (\r
- OUT EFI_BOOT_MODE *BootMode\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Get boot mode by looking up configuration table and parsing HOB list\r
-\r
-Arguments:\r
-\r
- BootMode - Boot mode from PEI handoff HOB.\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - Successfully get boot mode\r
- \r
- EFI_NOT_FOUND - Can not find the current system boot mode\r
-\r
---*/\r
-{\r
- EFI_HOB_HANDOFF_INFO_TABLE *HobList;\r
-\r
- HobList = GetHobList ();\r
- ASSERT (HobList->Header.HobType == EFI_HOB_TYPE_HANDOFF);\r
- *BootMode = HobList->BootMode;\r
-\r
- return EFI_SUCCESS;\r
-}\r
-\r
VOID *\r
BdsLibGetVariableAndSize (\r
IN CHAR16 *Name,\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. 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
//\r
// Get current Boot Mode\r
//\r
- Status = BdsLibGetBootMode (&PrivateData->BootMode);\r
+ PrivateData->BootMode = GetBootModeHob();\r
\r
//\r
// Go the different platform policy with different boot mode\r
VOID\r
);\r
\r
-EFI_STATUS\r
-BdsLibGetBootMode (\r
- OUT EFI_BOOT_MODE *BootMode\r
- );\r
-\r
VOID\r
BdsLibLoadDrivers (\r
IN LIST_ENTRY *BdsDriverLists\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. 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
return EFI_SUCCESS;\r
}\r
\r
-EFI_STATUS\r
-BdsLibGetBootMode (\r
- OUT EFI_BOOT_MODE *BootMode\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Get boot mode by looking up configuration table and parsing HOB list\r
-\r
-Arguments:\r
-\r
- BootMode - Boot mode from PEI handoff HOB.\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - Successfully get boot mode\r
- \r
- EFI_NOT_FOUND - Can not find the current system boot mode\r
-\r
---*/\r
-{\r
- EFI_HOB_HANDOFF_INFO_TABLE *HobList;\r
-\r
- HobList = GetHobList ();\r
- ASSERT (HobList->Header.HobType == EFI_HOB_TYPE_HANDOFF);\r
- *BootMode = HobList->BootMode;\r
-\r
- return EFI_SUCCESS;\r
-}\r
-\r
VOID *\r
BdsLibGetVariableAndSize (\r
IN CHAR16 *Name,\r
<TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>\r
<DatumType>UINT32</DatumType>\r
<MaxDatumSize>4</MaxDatumSize>\r
- <Value>10</Value>\r
+ <Value>320</Value>\r
</PcdData>\r
</PcdBuildDefinition>\r
<ModuleSaBuildOptions>\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. 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
//\r
// Get current Boot Mode\r
//\r
- Status = BdsLibGetBootMode (&PrivateData->BootMode);\r
+ PrivateData->BootMode = GetBootModeHob();\r
\r
//\r
// Go the different platform policy with different boot mode\r