\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
@return The pointer to the HOB list.\r
\r
**/\r
VOID *FixupData;\r
///\r
/// Is set by PeCoffLoaderGetImageInfo() to the Section Alignment in the PE/COFF header\r
+ /// If the image is a TE image, then this field is set to 0.\r
///\r
UINT32 SectionAlignment;\r
///\r
/**\r
Retrieves information about a PE/COFF image.\r
\r
- Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, CodeView,\r
- PdbPointer, RelocationsStripped, SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva\r
- fields of the ImageContext structure. If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.\r
- If the PE/COFF image accessed through the ImageRead service in the ImageContext structure is not\r
- a supported PE/COFF image type, then return RETURN_UNSUPPORTED. If any errors occur while\r
- computing the fields of ImageContext, then the error status is returned in the ImageError field of\r
- ImageContext. \r
+ Computes the PeCoffHeaderOffset, IsTeImage, ImageType, ImageAddress, ImageSize, \r
+ DestinationAddress, RelocationsStripped, SectionAlignment, SizeOfHeaders, and \r
+ DebugDirectoryEntryRva fields of the ImageContext structure. \r
+ If ImageContext is NULL, then return RETURN_INVALID_PARAMETER. \r
+ If the PE/COFF image accessed through the ImageRead service in the ImageContext \r
+ structure is not a supported PE/COFF image type, then return RETURN_UNSUPPORTED. \r
+ If any errors occur while computing the fields of ImageContext, \r
+ then the error status is returned in the ImageError field of ImageContext. \r
+ If the image is a TE image, then SectionAlignment is set to 0.\r
\r
@param ImageContext Pointer to the image context structure that describes the PE/COFF\r
image that needs to be examined by this function.\r
#/** @file\r
# Component description file for Base Memory Optimization Dxe Library.\r
#\r
-# Base Memory Library that uses MMX registers for high performance.\r
-# Optimized for use in DXE.\r
+# Base Memory Library that is optimized for use in DXE phase. \r
+# Uses REP, MMX, XMM registers as required for best performance.\r
# Copyright (c) 2007 - 2008, Intel Corporation\r
#\r
# All rights reserved. This program and the accompanying materials\r
#/** @file\r
# Component description file for Base Memory Optimization Pei Library\r
#\r
-# Base Memory Library that uses REP string instructions for\r
-# high performance and small size. Optimized for use in PEI.\r
+# Base Memory Library that is optimized for use in PEI phase. \r
+# Uses REP, MMX, XMM registers as required for best performance.\r
# Copyright (c) 2007 - 2008, Intel Corporation\r
#\r
# All rights reserved. This program and the accompanying materials\r
/**\r
Retrieves information about a PE/COFF image.\r
\r
- Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, RelocationsStripped, \r
- SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva fields of the ImageContext structure. \r
- If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.\r
- If the PE/COFF image accessed through the ImageRead service in the ImageContext structure is not\r
- a supported PE/COFF image type, then return RETURN_UNSUPPORTED. If any errors occur while\r
- computing the fields of ImageContext, then the error status is returned in the ImageError field of\r
- ImageContext.\r
+ Computes the PeCoffHeaderOffset, IsTeImage, ImageType, ImageAddress, ImageSize, \r
+ DestinationAddress, RelocationsStripped, SectionAlignment, SizeOfHeaders, and \r
+ DebugDirectoryEntryRva fields of the ImageContext structure. \r
+ If ImageContext is NULL, then return RETURN_INVALID_PARAMETER. \r
+ If the PE/COFF image accessed through the ImageRead service in the ImageContext \r
+ structure is not a supported PE/COFF image type, then return RETURN_UNSUPPORTED. \r
+ If any errors occur while computing the fields of ImageContext, \r
+ then the error status is returned in the ImageError field of ImageContext. \r
+ If the image is a TE image, then SectionAlignment is set to 0.\r
\r
@param ImageContext Pointer to the image context structure that describes the PE/COFF\r
image that needs to be examined by this function.\r
#/** @file\r
-# Component description file for Base Library\r
+# Component description file for Base Cpu Library\r
#\r
# Base Library implementation.\r
# Copyright (c) 2007, Intel Corporation.\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
VOID\r
)\r
{\r
+ ASSERT (gHobList != NULL);\r
return gHobList;\r
}\r
\r
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;\r
\r
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();\r
- ASSERT (HandOffHob != NULL);\r
\r
return HandOffHob->BootMode;\r
}\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
VOID\r
)\r
{\r
+ ASSERT (mHobList != NULL);\r
return mHobList;\r
}\r
\r
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;\r
\r
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();\r
- ASSERT (HandOffHob != NULL);\r
\r
return HandOffHob->BootMode;\r
}\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