@param FileHandle Handle of the file being invoked.\r
@param PeiServices Pointer to PEI Services table.\r
\r
- @retval EFI_SUCEESS\r
+ @retval EFI_SUCCESS\r
@return Others Some error occurs.\r
**/\r
EFI_STATUS\r
@param[in] ImageHandle Image handle of this driver.\r
@param[in] SystemTable A Pointer to the EFI System Table.\r
\r
- @retval EFI_SUCEESS\r
+ @retval EFI_SUCCESS\r
@return Others Some error occurs.\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was read from Save State\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor\r
- @retval EFI_INVALID_PARAMTER This or Buffer is NULL.\r
+ @retval EFI_INVALID_PARAMETER This or Buffer is NULL.\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was written from Save State\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor\r
- @retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct\r
+ @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was read from Save State\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor\r
- @retval EFI_INVALID_PARAMTER This or Buffer is NULL.\r
+ @retval EFI_INVALID_PARAMETER This or Buffer is NULL.\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was written from Save State\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor\r
- @retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct\r
+ @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was read from Save State.\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.\r
-@retval EFI_INVALID_PARAMTER This or Buffer is NULL.\r
+@retval EFI_INVALID_PARAMETER This or Buffer is NULL.\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was written to Save State.\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.\r
-@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct.\r
+@retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct.\r
\r
**/\r
EFI_STATUS\r
\r
/**\r
This function fixes up the address of the global variable or function\r
- referred in SmmInit assembly files to be the absoute address.\r
+ referred in SmmInit assembly files to be the absolute address.\r
**/\r
VOID\r
EFIAPI\r
\r
/**\r
This function fixes up the address of the global variable or function\r
- referred in SmiEntry assembly files to be the absoute address.\r
+ referred in SmiEntry assembly files to be the absolute address.\r
**/\r
VOID\r
EFIAPI\r
}\r
\r
//\r
- // Below logic is to check 2M/4K page to make sure we donot waist memory.\r
+ // Below logic is to check 2M/4K page to make sure we do not waste memory.\r
//\r
while (Length != 0) {\r
PageEntry = GetPageTableEntry (BaseAddress, &PageAttribute);\r
}\r
\r
/**\r
- Merge continous memory map entries whose type is\r
+ Merge continuous memory map entries whose type is\r
EfiLoaderCode/Data, EfiBootServicesCode/Data, EfiConventionalMemory,\r
EfiUnusableMemory, EfiACPIReclaimMemory, because the memory described by\r
these entries will be set as NOT present in SMM page table.\r
\r
@retval EFI_SUCCESS The register was read from Save State.\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.\r
- @retval EFI_INVALID_PARAMTER This or Buffer is NULL.\r
+ @retval EFI_INVALID_PARAMETER This or Buffer is NULL.\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was read from Save State.\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.\r
- @retval EFI_INVALID_PARAMTER This or Buffer is NULL.\r
+ @retval EFI_INVALID_PARAMETER This or Buffer is NULL.\r
\r
**/\r
EFI_STATUS\r
\r
@retval EFI_SUCCESS The register was written to Save State.\r
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.\r
- @retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct.\r
+ @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct.\r
\r
**/\r
EFI_STATUS\r
);\r
\r
//\r
- // Use temp value to fix ICC complier warning\r
+ // Use temp value to fix ICC compiler warning\r
//\r
TempValue = (UINTN)&mSmmRelocationOriginalAddress;\r
PatchInstructionX86 (\r
%include "Nasm.inc"\r
\r
;\r
-; Variables referrenced by C code\r
+; Variables referenced by C code\r
;\r
\r
%define MSR_IA32_S_CET 0x6A2\r
ASM_PFX(gPatchSmmInitStack):\r
and sp, 0xfff0 ; make sure RSP is 16-byte aligned\r
;\r
- ; Accoring to X64 calling convention, XMM0~5 are volatile, we need to save\r
+ ; According to X64 calling convention, XMM0~5 are volatile, we need to save\r
; them before calling C-function.\r
;\r
sub rsp, 0x60\r