UefiCpuPkg/PiSmm: Fix various typos

Fix various typos in comments and documentation.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-78-philmd@redhat.com>
This commit is contained in:
Antoine Coeur 2020-02-07 02:08:30 +01:00 committed by mergify[bot]
parent f60f4cfeb4
commit ef62da4ff7
9 changed files with 18 additions and 18 deletions

View File

@ -366,7 +366,7 @@ Communicate (
@param FileHandle Handle of the file being invoked. @param FileHandle Handle of the file being invoked.
@param PeiServices Pointer to PEI Services table. @param PeiServices Pointer to PEI Services table.
@retval EFI_SUCEESS @retval EFI_SUCCESS
@return Others Some error occurs. @return Others Some error occurs.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -155,7 +155,7 @@ AllocateAcpiNvsMemoryBelow4G (
@param[in] ImageHandle Image handle of this driver. @param[in] ImageHandle Image handle of this driver.
@param[in] SystemTable A Pointer to the EFI System Table. @param[in] SystemTable A Pointer to the EFI System Table.
@retval EFI_SUCEESS @retval EFI_SUCCESS
@return Others Some error occurs. @return Others Some error occurs.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -215,7 +215,7 @@ DumpModuleInfoByIp (
@retval EFI_SUCCESS The register was read from Save State @retval EFI_SUCCESS The register was read from Save State
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor
@retval EFI_INVALID_PARAMTER This or Buffer is NULL. @retval EFI_INVALID_PARAMETER This or Buffer is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -287,7 +287,7 @@ SmmReadSaveState (
@retval EFI_SUCCESS The register was written from Save State @retval EFI_SUCCESS The register was written from Save State
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor
@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -284,7 +284,7 @@ extern UINT8 mSmmSaveStateRegisterLma;
@retval EFI_SUCCESS The register was read from Save State @retval EFI_SUCCESS The register was read from Save State
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor
@retval EFI_INVALID_PARAMTER This or Buffer is NULL. @retval EFI_INVALID_PARAMETER This or Buffer is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -308,7 +308,7 @@ SmmReadSaveState (
@retval EFI_SUCCESS The register was written from Save State @retval EFI_SUCCESS The register was written from Save State
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor
@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct
**/ **/
EFI_STATUS EFI_STATUS
@ -336,7 +336,7 @@ This function supports reading a CPU Save State register in SMBase relocation ha
@retval EFI_SUCCESS The register was read from Save State. @retval EFI_SUCCESS The register was read from Save State.
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.
@retval EFI_INVALID_PARAMTER This or Buffer is NULL. @retval EFI_INVALID_PARAMETER This or Buffer is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -363,7 +363,7 @@ This function supports writing a CPU Save State register in SMBase relocation ha
@retval EFI_SUCCESS The register was written to Save State. @retval EFI_SUCCESS The register was written to Save State.
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.
@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct. @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct.
**/ **/
EFI_STATUS EFI_STATUS
@ -1263,7 +1263,7 @@ EdkiiSmmGetMemoryAttributes (
/** /**
This function fixes up the address of the global variable or function This function fixes up the address of the global variable or function
referred in SmmInit assembly files to be the absoute address. referred in SmmInit assembly files to be the absolute address.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -1272,7 +1272,7 @@ PiSmmCpuSmmInitFixupAddress (
/** /**
This function fixes up the address of the global variable or function This function fixes up the address of the global variable or function
referred in SmiEntry assembly files to be the absoute address. referred in SmiEntry assembly files to be the absolute address.
**/ **/
VOID VOID
EFIAPI EFIAPI

View File

@ -465,7 +465,7 @@ ConvertMemoryPageAttributes (
} }
// //
// Below logic is to check 2M/4K page to make sure we donot waist memory. // Below logic is to check 2M/4K page to make sure we do not waste memory.
// //
while (Length != 0) { while (Length != 0) {
PageEntry = GetPageTableEntry (BaseAddress, &PageAttribute); PageEntry = GetPageTableEntry (BaseAddress, &PageAttribute);
@ -1065,7 +1065,7 @@ IsUefiPageNotPresent (
} }
/** /**
Merge continous memory map entries whose type is Merge continuous memory map entries whose type is
EfiLoaderCode/Data, EfiBootServicesCode/Data, EfiConventionalMemory, EfiLoaderCode/Data, EfiBootServicesCode/Data, EfiConventionalMemory,
EfiUnusableMemory, EfiACPIReclaimMemory, because the memory described by EfiUnusableMemory, EfiACPIReclaimMemory, because the memory described by
these entries will be set as NOT present in SMM page table. these entries will be set as NOT present in SMM page table.

View File

@ -260,7 +260,7 @@ GetRegisterIndex (
@retval EFI_SUCCESS The register was read from Save State. @retval EFI_SUCCESS The register was read from Save State.
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.
@retval EFI_INVALID_PARAMTER This or Buffer is NULL. @retval EFI_INVALID_PARAMETER This or Buffer is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -343,7 +343,7 @@ ReadSaveStateRegisterByIndex (
@retval EFI_SUCCESS The register was read from Save State. @retval EFI_SUCCESS The register was read from Save State.
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.
@retval EFI_INVALID_PARAMTER This or Buffer is NULL. @retval EFI_INVALID_PARAMETER This or Buffer is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -455,7 +455,7 @@ ReadSaveStateRegister (
@retval EFI_SUCCESS The register was written to Save State. @retval EFI_SUCCESS The register was written to Save State.
@retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor.
@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct. @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -58,7 +58,7 @@ SemaphoreHook (
); );
// //
// Use temp value to fix ICC complier warning // Use temp value to fix ICC compiler warning
// //
TempValue = (UINTN)&mSmmRelocationOriginalAddress; TempValue = (UINTN)&mSmmRelocationOriginalAddress;
PatchInstructionX86 ( PatchInstructionX86 (

View File

@ -16,7 +16,7 @@
%include "Nasm.inc" %include "Nasm.inc"
; ;
; Variables referrenced by C code ; Variables referenced by C code
; ;
%define MSR_IA32_S_CET 0x6A2 %define MSR_IA32_S_CET 0x6A2

View File

@ -72,7 +72,7 @@ BITS 64
ASM_PFX(gPatchSmmInitStack): ASM_PFX(gPatchSmmInitStack):
and sp, 0xfff0 ; make sure RSP is 16-byte aligned and sp, 0xfff0 ; make sure RSP is 16-byte aligned
; ;
; Accoring to X64 calling convention, XMM0~5 are volatile, we need to save ; According to X64 calling convention, XMM0~5 are volatile, we need to save
; them before calling C-function. ; them before calling C-function.
; ;
sub rsp, 0x60 sub rsp, 0x60