\r
This function should only be invoked when Loading Module at Fixed Address(LMFA) feature is enabled. When feature is\r
configured as Load Modules at Fix Absolute Address, this function is to validate the top address assigned by user. When\r
- feature is configured as Load Modules at Fixed Offset, the functino is to find the top address which is TOLM-TSEG in general.\r
+ feature is configured as Load Modules at Fixed Offset, the function is to find the top address which is TOLM-TSEG in general.\r
And also the function will re-install PEI memory.\r
\r
@param PrivateData Pointer to the private data passed in from caller\r
);\r
}\r
//\r
- // Delete CurrentHob by marking it as unused since the the memory range described by is rebuilt.\r
+ // Delete CurrentHob by marking it as unused since the memory range described by is rebuilt.\r
//\r
GET_HOB_TYPE (CurrentHob) = EFI_HOB_TYPE_UNUSED;\r
}\r
\r
//\r
// Calculate stack offset and heap offset between temporary memory and new permanent\r
- // memory seperately.\r
+ // memory separately.\r
//\r
TopOfOldStack = (UINTN)SecCoreData->StackBase + SecCoreData->StackSize;\r
TopOfNewStack = Private->PhysicalMemoryBegin + NewStackSize;\r
\r
//\r
// Before walking through the next FV, we should set them to NULL/0 to\r
- // start at the begining of the next FV.\r
+ // start at the beginning of the next FV.\r
//\r
Private->CurrentFileHandle = NULL;\r
Private->CurrentPeimCount = 0;\r
\r
@param PrivateData PeiCore's private data structure\r
@param OldCoreData Old data from SecCore\r
- NULL if being run in non-permament memory mode.\r
+ NULL if being run in non-permanent memory mode.\r
@param SecCoreData Points to a data structure containing information about the PEI core's operating\r
environment, such as the size and location of temporary RAM, the stack location and\r
the BFV location.\r
if (IS_FFS_FILE2 (FileHeader)) {\r
CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER2));\r
//\r
- // Ingore State and File field in FFS header.\r
+ // Ignore State and File field in FFS header.\r
//\r
TestFileHeader.State = 0;\r
TestFileHeader.IntegrityCheck.Checksum.File = 0;\r
} else {\r
CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER));\r
//\r
- // Ingore State and File field in FFS header.\r
+ // Ignore State and File field in FFS header.\r
//\r
TestFileHeader.State = 0;\r
TestFileHeader.IntegrityCheck.Checksum.File = 0;\r
EFI_PHYSICAL_ADDRESS LoadModuleAtFixAddressTopAddress;\r
//\r
// The field is define for Loading modules at fixed address feature to tracker the PEI code\r
- // memory range usage. It is a bit mapped array in which every bit indicates the correspoding memory page\r
+ // memory range usage. It is a bit mapped array in which every bit indicates the corresponding memory page\r
// available or not.\r
//\r
UINT64 *PeiCodeMemoryRangeUsageBitMap;\r
\r
@retval EFI_SUCCESS if successful\r
@retval EFI_OUT_OF_RESOURCES if no space in the database\r
- @retval EFI_INVALID_PARAMETER if not a good decriptor\r
+ @retval EFI_INVALID_PARAMETER if not a good descriptor\r
\r
**/\r
EFI_STATUS\r