/** @file\r
- HOB Library.\r
+ Provide Hob Library functions for Pei phase.\r
\r
- Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
+ Copyright (c) 2007 - 2008, Intel Corporation<BR>\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
Returns the pointer to the HOB list.\r
+ ASSERT() if the HOB list returned by GetHobList() is NULL.\r
\r
This function returns the pointer to first HOB in the list.\r
\r
/**\r
Get the Boot Mode from the HOB list.\r
\r
- This function returns the system boot mode information from the \r
- PHIT HOB in HOB list.\r
+ This function returns the system boot mode information \r
+ by PeiCore GetBootMode Service.\r
\r
@param VOID\r
\r
@return The address of new HOB.\r
\r
**/\r
-STATIC\r
VOID *\r
+EFIAPI\r
InternalPeiCreateHob (\r
IN UINT16 Type,\r
IN UINT16 Length\r
/**\r
Builds a Capsule Volume HOB.\r
\r
- This function builds a Capsule Volume HOB.\r
- It can only be invoked during PEI phase;\r
- for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
- If there is no additional space for HOB creation, then ASSERT().\r
-\r
- @param BaseAddress The base address of the Capsule Volume.\r
- @param Length The size of the Capsule Volume in bytes.\r
+ This function is not supported, because Capsule Volume Hob is the platform\r
+ specific. It is not the common defintion in PI and UEFI spec.\r
\r
**/\r
VOID\r
CopyGuid (&(Hob->AllocDescriptor.Name), &gEfiHobMemoryAllocStackGuid);\r
Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;\r
Hob->AllocDescriptor.MemoryLength = Length;\r
- Hob->AllocDescriptor.MemoryType = EfiConventionalMemory;\r
+ Hob->AllocDescriptor.MemoryType = EfiBootServicesData;\r
\r
//\r
// Zero the reserved space to match HOB spec\r