UefiCpuPkg/Smm: 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-79-philmd@redhat.com>
This commit is contained in:
Antoine Coeur 2020-02-07 02:08:31 +01:00 committed by mergify[bot]
parent ef62da4ff7
commit 418aded964
7 changed files with 12 additions and 12 deletions

View File

@ -338,7 +338,7 @@ SmmCpuFeaturesSetSmmRegister (
from the save state. from the save state.
@retval EFI_SUCCESS The register was read from Save State. @retval EFI_SUCCESS The register was read from Save State.
@retval EFI_INVALID_PARAMTER Buffer is NULL. @retval EFI_INVALID_PARAMETER Buffer is NULL.
@retval EFI_UNSUPPORTED This function does not support reading Register. @retval EFI_UNSUPPORTED This function does not support reading Register.
**/ **/
@ -364,7 +364,7 @@ SmmCpuFeaturesReadSaveStateRegister (
@param[in] Buffer Upon entry, this holds the new CPU register value. @param[in] Buffer Upon entry, this holds the new CPU register value.
@retval EFI_SUCCESS The register was written to Save State. @retval EFI_SUCCESS The register was written to Save State.
@retval EFI_INVALID_PARAMTER Buffer is NULL. @retval EFI_INVALID_PARAMETER Buffer is NULL.
@retval EFI_UNSUPPORTED This function does not support writing Register. @retval EFI_UNSUPPORTED This function does not support writing Register.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -68,7 +68,7 @@ CommonExceptionHandlerWorker (
// //
ArchRestoreExceptionContext (ExceptionType, SystemContext, ExceptionHandlerData); ArchRestoreExceptionContext (ExceptionType, SystemContext, ExceptionHandlerData);
// //
// Rlease spin lock for ApicId // Release spin lock for ApicId
// //
ReleaseSpinLock (&ReservedVectors[ExceptionType].SpinLock); ReleaseSpinLock (&ReservedVectors[ExceptionType].SpinLock);
break; break;
@ -230,7 +230,7 @@ InitializeCpuExceptionHandlersWorker (
IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR); IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR);
if (IdtEntryCount > CPU_EXCEPTION_NUM) { if (IdtEntryCount > CPU_EXCEPTION_NUM) {
// //
// CPU exeption library only setup CPU_EXCEPTION_NUM exception handler at most // CPU exception library only setup CPU_EXCEPTION_NUM exception handler at most
// //
IdtEntryCount = CPU_EXCEPTION_NUM; IdtEntryCount = CPU_EXCEPTION_NUM;
} }

View File

@ -1,5 +1,5 @@
/** @file /** @file
CPU exception handler library implemenation for SMM modules. CPU exception handler library implementation for SMM modules.
Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR> Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent

View File

@ -540,7 +540,7 @@ SmmCpuFeaturesSetSmmRegister (
from the save state. from the save state.
@retval EFI_SUCCESS The register was read from Save State. @retval EFI_SUCCESS The register was read from Save State.
@retval EFI_INVALID_PARAMTER Buffer is NULL. @retval EFI_INVALID_PARAMETER Buffer is NULL.
@retval EFI_UNSUPPORTED This function does not support reading Register. @retval EFI_UNSUPPORTED This function does not support reading Register.
**/ **/
@ -569,7 +569,7 @@ SmmCpuFeaturesReadSaveStateRegister (
@param[in] Buffer Upon entry, this holds the new CPU register value. @param[in] Buffer Upon entry, this holds the new CPU register value.
@retval EFI_SUCCESS The register was written to Save State. @retval EFI_SUCCESS The register was written to Save State.
@retval EFI_INVALID_PARAMTER Buffer is NULL. @retval EFI_INVALID_PARAMETER Buffer is NULL.
@retval EFI_UNSUPPORTED This function does not support writing Register. @retval EFI_UNSUPPORTED This function does not support writing Register.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -913,7 +913,7 @@ AddPiResource (
} }
// //
// Copy EndResource for intialization // Copy EndResource for initialization
// //
mStmResourcesPtr = (UINT8 *)(UINTN)NewResource; mStmResourcesPtr = (UINT8 *)(UINTN)NewResource;
mStmResourceTotalSize = NewResourceSize; mStmResourceTotalSize = NewResourceSize;
@ -1236,7 +1236,7 @@ LoadMonitor (
/** /**
This function return BIOS STM resource. This function return BIOS STM resource.
Produced by SmmStm. Produced by SmmStm.
Comsumed by SmmMpService when Init. Consumed by SmmMpService when Init.
@return BIOS STM resource @return BIOS STM resource

View File

@ -138,7 +138,7 @@ GetPiResource (
); );
/** /**
This functin initialize STM configuration table. This function initialize STM configuration table.
**/ **/
VOID VOID
StmSmmConfigurationTableInit ( StmSmmConfigurationTableInit (
@ -169,7 +169,7 @@ GetStmResource (
/** /**
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

@ -15,7 +15,7 @@
%include "StuffRsbNasm.inc" %include "StuffRsbNasm.inc"
; ;
; Variables referrenced by C code ; Variables referenced by C code
; ;
%define MSR_IA32_MISC_ENABLE 0x1A0 %define MSR_IA32_MISC_ENABLE 0x1A0