From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web11.7119.1581041552957095722 for ; Thu, 06 Feb 2020 18:12:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gqbCvDwf; spf=pass (domain: redhat.com, ip: 205.139.110.61, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581041552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OXbq5baWt1RWZOYWyz7xHXkdXHKHDXDChEcdyUKCzaY=; b=gqbCvDwfIbqohdCxpjlG33vpr58jL+OhRNfp8fRlmlRIXf0n7T3hJYoJ0JgXwbr+4BqDZX qHiJRBEufDhDqWyLvn/YB3Xj/a3BuBIwQsKi76wcgSiD6JVry8jOd1pkXhdTt8pg9En/09 q6/AOCBugfhF2aKl4YA4HdRTeOpVGYg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-130-hanMwaszN7abXcM8AILcSA-1; Thu, 06 Feb 2020 21:12:26 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB555801F76; Fri, 7 Feb 2020 02:12:25 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-120.brq.redhat.com [10.40.204.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC72360BEC; Fri, 7 Feb 2020 02:12:24 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Laszlo Ersek , Eric Dong Subject: [PATCH v3 77/78] UefiCpuPkg/PiSmm: Fix various typos Date: Fri, 7 Feb 2020 02:08:30 +0100 Message-Id: <20200207010831.9046-78-philmd@redhat.com> In-Reply-To: <20200207010831.9046-1-philmd@redhat.com> References: <20200207010831.9046-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: hanMwaszN7abXcM8AILcSA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in comments and documentation. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Laszlo Ersek Reviewed-by: Eric Dong Signed-off-by: Philippe Mathieu-Daude --- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 12 ++++++------ .../PiSmmCommunication/PiSmmCommunicationPei.c | 2 +- .../PiSmmCommunication/PiSmmCommunicationSmm.c | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 4 ++-- UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 4 ++-- UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c | 6 +++--- UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h b/UefiCpuPkg/PiSmmC= puDxeSmm/PiSmmCpuDxeSmm.h index 33b3dd140ea7..fe7e8b0323b8 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h @@ -284,7 +284,7 @@ extern UINT8 mSmmSaveStateRegisterLma; =20 @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_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. =20 **/ EFI_STATUS @@ -308,7 +308,7 @@ SmmReadSaveState ( =20 @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_INVALID_PARAMTER ProcessorIndex or Width is not correct + @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct =20 **/ EFI_STATUS @@ -336,7 +336,7 @@ This function supports reading a CPU Save State registe= r in SMBase relocation ha =20 @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save Sta= te of Processor. -@retval EFI_INVALID_PARAMTER This or Buffer is NULL. +@retval EFI_INVALID_PARAMETER This or Buffer is NULL. =20 **/ EFI_STATUS @@ -363,7 +363,7 @@ This function supports writing a CPU Save State registe= r in SMBase relocation ha =20 @retval EFI_SUCCESS The register was written to Save State. @retval EFI_NOT_FOUND The register is not defined for the Save Sta= te of Processor. -@retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct. +@retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct. =20 **/ EFI_STATUS @@ -1263,7 +1263,7 @@ EdkiiSmmGetMemoryAttributes ( =20 /** 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 EFIAPI @@ -1272,7 +1272,7 @@ PiSmmCpuSmmInitFixupAddress ( =20 /** 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 EFIAPI diff --git a/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.c b/UefiCp= uPkg/PiSmmCommunication/PiSmmCommunicationPei.c index 5d09130e5591..68e5003ad4c2 100644 --- a/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.c +++ b/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.c @@ -366,7 +366,7 @@ Communicate ( @param FileHandle Handle of the file being invoked. @param PeiServices Pointer to PEI Services table. =20 - @retval EFI_SUCEESS + @retval EFI_SUCCESS @return Others Some error occurs. **/ EFI_STATUS diff --git a/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.c b/UefiCp= uPkg/PiSmmCommunication/PiSmmCommunicationSmm.c index 6be12d6c14cd..30f7d57bdd91 100644 --- a/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.c +++ b/UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.c @@ -155,7 +155,7 @@ AllocateAcpiNvsMemoryBelow4G ( @param[in] ImageHandle Image handle of this driver. @param[in] SystemTable A Pointer to the EFI System Table. =20 - @retval EFI_SUCEESS + @retval EFI_SUCCESS @return Others Some error occurs. **/ EFI_STATUS diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c b/UefiCpuPkg/PiSmmC= puDxeSmm/PiSmmCpuDxeSmm.c index 723fd5042ff4..db68e1316ec5 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c @@ -215,7 +215,7 @@ DumpModuleInfoByIp ( =20 @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_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. =20 **/ EFI_STATUS @@ -287,7 +287,7 @@ SmmReadSaveState ( =20 @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_INVALID_PARAMTER ProcessorIndex or Width is not correct + @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct =20 **/ EFI_STATUS diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c b/UefiCpuPk= g/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c index 55090e9c3e4f..9c5a92af6479 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c @@ -465,7 +465,7 @@ ConvertMemoryPageAttributes ( } =20 // - // 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 memor= y. // while (Length !=3D 0) { PageEntry =3D GetPageTableEntry (BaseAddress, &PageAttribute); @@ -1065,7 +1065,7 @@ IsUefiPageNotPresent ( } =20 /** - Merge continous memory map entries whose type is + Merge continuous memory map entries whose type is EfiLoaderCode/Data, EfiBootServicesCode/Data, EfiConventionalMemory, EfiUnusableMemory, EfiACPIReclaimMemory, because the memory described by these entries will be set as NOT present in SMM page table. diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c b/UefiCpuPkg/PiSmmC= puDxeSmm/SmramSaveState.c index b1a492725a0c..661cc51f361a 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c @@ -260,7 +260,7 @@ GetRegisterIndex ( =20 @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save S= tate of Processor. - @retval EFI_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. =20 **/ EFI_STATUS @@ -343,7 +343,7 @@ ReadSaveStateRegisterByIndex ( =20 @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save S= tate of Processor. - @retval EFI_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. =20 **/ EFI_STATUS @@ -455,7 +455,7 @@ ReadSaveStateRegister ( =20 @retval EFI_SUCCESS The register was written to Save State. @retval EFI_NOT_FOUND The register is not defined for the Save S= tate of Processor. - @retval EFI_INVALID_PARAMTER ProcessorIndex or Width is not correct. + @retval EFI_INVALID_PARAMETER ProcessorIndex or Width is not correct. =20 **/ EFI_STATUS diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c b/UefiCpuPkg/PiSmmCp= uDxeSmm/X64/Semaphore.c index ce1bf9fb541c..8c9de1fdae70 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/Semaphore.c @@ -58,7 +58,7 @@ SemaphoreHook ( ); =20 // - // Use temp value to fix ICC complier warning + // Use temp value to fix ICC compiler warning // TempValue =3D (UINTN)&mSmmRelocationOriginalAddress; PatchInstructionX86 ( diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm b/UefiCpuPkg/PiSmm= CpuDxeSmm/X64/SmiEntry.nasm index db06d22d51f4..8bfba55b5d08 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm @@ -16,7 +16,7 @@ %include "Nasm.inc" =20 ; -; Variables referrenced by C code +; Variables referenced by C code ; =20 %define MSR_IA32_S_CET 0x6A2 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm b/UefiCpuPkg/PiSmmC= puDxeSmm/X64/SmmInit.nasm index 8d81582bb1dd..9cf3a6dcf9d5 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm @@ -72,7 +72,7 @@ BITS 64 ASM_PFX(gPatchSmmInitStack): 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. ; sub rsp, 0x60 --=20 2.21.1