]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmm: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:08:30 +0000 (02:08 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
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>

UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.c
UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c
UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c
UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm

index 5d09130e55919a43bdb10726317a385fe161afae..68e5003ad4c22da428dc57597e1b8ff4b85cbf7b 100644 (file)
@@ -366,7 +366,7 @@ Communicate (
   @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
index 6be12d6c14cd403026d59b95e9aa0c57a6f1ea75..30f7d57bdd91a2bfa7c8ec02feb95f82802c2cad 100644 (file)
@@ -155,7 +155,7 @@ AllocateAcpiNvsMemoryBelow4G (
   @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
index 723fd5042ff47f6ae36ccda21721338852e7ddeb..db68e1316ec54e5ddead1d1cb511ce38315d0b79 100644 (file)
@@ -215,7 +215,7 @@ DumpModuleInfoByIp (
 \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
@@ -287,7 +287,7 @@ SmmReadSaveState (
 \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
index 33b3dd140ea72d4f6f707c8be6391d3fe31a06c2..fe7e8b0323b82095faa8b48582e0680a1035fc4c 100644 (file)
@@ -284,7 +284,7 @@ extern UINT8  mSmmSaveStateRegisterLma;
 \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
@@ -308,7 +308,7 @@ SmmReadSaveState (
 \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
@@ -336,7 +336,7 @@ This function supports reading a CPU Save State register in SMBase relocation ha
 \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
@@ -363,7 +363,7 @@ This function supports writing a CPU Save State register in SMBase relocation ha
 \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
@@ -1263,7 +1263,7 @@ EdkiiSmmGetMemoryAttributes (
 \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
@@ -1272,7 +1272,7 @@ PiSmmCpuSmmInitFixupAddress (
 \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
index 55090e9c3e4fe79b32fb561763a781faa9015223..9c5a92af6479d54e913bdd285cef01eb15875b45 100644 (file)
@@ -465,7 +465,7 @@ ConvertMemoryPageAttributes (
   }\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
@@ -1065,7 +1065,7 @@ IsUefiPageNotPresent (
 }\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
index b1a492725a0cb26af9bd4b49065e3ded3cbe48b5..661cc51f361a2932495d31c71e3b849c153507d4 100644 (file)
@@ -260,7 +260,7 @@ GetRegisterIndex (
 \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
@@ -343,7 +343,7 @@ ReadSaveStateRegisterByIndex (
 \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
@@ -455,7 +455,7 @@ ReadSaveStateRegister (
 \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
index ce1bf9fb541ce1bcfa0bcf3bafc5df2487c4450d..8c9de1fdae70fa4df6ad275cb77bf25ba192ed5c 100644 (file)
@@ -58,7 +58,7 @@ SemaphoreHook (
                                     );\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
index db06d22d51f4804fc939dd6e55450a8f29170b9a..8bfba55b5d082dcb9b51f257c832f2aff425f345 100644 (file)
@@ -16,7 +16,7 @@
 %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
index 8d81582bb1dd83d15ea404325cd8494020a2335f..9cf3a6dcf9d568f3a5f6fc5b351ec9b513793a28 100644 (file)
@@ -72,7 +72,7 @@ BITS 64
 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