UefiCpuPkg/CpuDxe: Fix few typos

Fix few 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-77-philmd@redhat.com>
This commit is contained in:
Antoine Coeur 2020-02-07 02:08:29 +01:00 committed by mergify[bot]
parent 2a0755a947
commit f60f4cfeb4
8 changed files with 15 additions and 15 deletions

View File

@ -393,7 +393,7 @@ CpuSetMemoryAttributes (
// //
// If this function is called because GCD SetMemorySpaceAttributes () is called // If this function is called because GCD SetMemorySpaceAttributes () is called
// by RefreshGcdMemoryAttributes (), then we are just synchronzing GCD memory // by RefreshGcdMemoryAttributes (), then we are just synchronizing GCD memory
// map with MTRR values. So there is no need to modify MTRRs, just return immediately // map with MTRR values. So there is no need to modify MTRRs, just return immediately
// to avoid unnecessary computing. // to avoid unnecessary computing.
// //
@ -456,7 +456,7 @@ CpuSetMemoryAttributes (
CurrentCacheType = MtrrGetMemoryAttribute(BaseAddress); CurrentCacheType = MtrrGetMemoryAttribute(BaseAddress);
if (CurrentCacheType != CacheType) { if (CurrentCacheType != CacheType) {
// //
// call MTRR libary function // call MTRR library function
// //
Status = MtrrSetMemoryAttribute ( Status = MtrrSetMemoryAttribute (
BaseAddress, BaseAddress,
@ -831,7 +831,7 @@ RefreshMemoryAttributesFromMtrr (
Attributes = CurrentAttributes; Attributes = CurrentAttributes;
} else { } else {
// //
// If fixed MTRR attribute changed, then set memory attribute for previous atrribute // If fixed MTRR attribute changed, then set memory attribute for previous attribute
// //
if (CurrentAttributes != Attributes) { if (CurrentAttributes != Attributes) {
SetGcdMemorySpaceAttributes ( SetGcdMemorySpaceAttributes (
@ -1045,7 +1045,7 @@ IntersectMemoryDescriptor (
@param Length Length of the MMIO space. @param Length Length of the MMIO space.
@param Capabilities Capabilities of the MMIO space. @param Capabilities Capabilities of the MMIO space.
@retval EFI_SUCCES The MMIO space was added successfully. @retval EFI_SUCCESS The MMIO space was added successfully.
**/ **/
EFI_STATUS EFI_STATUS
AddMemoryMappedIoSpace ( AddMemoryMappedIoSpace (

View File

@ -208,7 +208,7 @@ CpuGetTimerValue (
); );
/** /**
Set memory cacheability attributes for given range of memeory. Set memory cacheability attributes for given range of memory.
@param This Protocol instance structure @param This Protocol instance structure
@param BaseAddress Specifies the start address of the @param BaseAddress Specifies the start address of the

View File

@ -1,5 +1,5 @@
/** @file /** @file
C based implemention of IA32 interrupt handling only C based implementation of IA32 interrupt handling only
requiring a minimal assembly interrupt entry point. requiring a minimal assembly interrupt entry point.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>

View File

@ -1,5 +1,5 @@
/** @file /** @file
C based implemention of IA32 interrupt handling only C based implementation of IA32 interrupt handling only
requiring a minimal assembly interrupt entry point. requiring a minimal assembly interrupt entry point.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>

View File

@ -164,7 +164,7 @@ GetProcessorInfo (
and releases the BSP to continue with other tasks. and releases the BSP to continue with other tasks.
-# The caller can use the CheckEvent() and WaitForEvent() services to check -# The caller can use the CheckEvent() and WaitForEvent() services to check
the state of the WaitEvent created in step 1. the state of the WaitEvent created in step 1.
-# When the APs complete their task or TimeoutInMicroSecondss expires, the MP -# When the APs complete their task or TimeoutInMicroSeconds expires, the MP
Service signals WaitEvent by calling the EFI SignalEvent() function. If Service signals WaitEvent by calling the EFI SignalEvent() function. If
FailedCpuList is not NULL, its content is available when WaitEvent is FailedCpuList is not NULL, its content is available when WaitEvent is
signaled. If all APs returned from Procedure prior to the timeout, then signaled. If all APs returned from Procedure prior to the timeout, then
@ -281,7 +281,7 @@ StartupAllAPs (
This function is used to dispatch one enabled AP to the function specified by This function is used to dispatch one enabled AP to the function specified by
Procedure passing in the argument specified by ProcedureArgument. If WaitEvent Procedure passing in the argument specified by ProcedureArgument. If WaitEvent
is NULL, execution is in blocking mode. The BSP waits until the AP finishes or is NULL, execution is in blocking mode. The BSP waits until the AP finishes or
TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode. TimeoutInMicroSeconds expires. Otherwise, execution is in non-blocking mode.
BSP proceeds to the next task without waiting for the AP. If a non-blocking mode BSP proceeds to the next task without waiting for the AP. If a non-blocking mode
is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled, is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,
then EFI_UNSUPPORTED must be returned. then EFI_UNSUPPORTED must be returned.

View File

@ -147,7 +147,7 @@ GetProcessorInfo (
and releases the BSP to continue with other tasks. and releases the BSP to continue with other tasks.
-# The caller can use the CheckEvent() and WaitForEvent() services to check -# The caller can use the CheckEvent() and WaitForEvent() services to check
the state of the WaitEvent created in step 1. the state of the WaitEvent created in step 1.
-# When the APs complete their task or TimeoutInMicroSecondss expires, the MP -# When the APs complete their task or TimeoutInMicroSeconds expires, the MP
Service signals WaitEvent by calling the EFI SignalEvent() function. If Service signals WaitEvent by calling the EFI SignalEvent() function. If
FailedCpuList is not NULL, its content is available when WaitEvent is FailedCpuList is not NULL, its content is available when WaitEvent is
signaled. If all APs returned from Procedure prior to the timeout, then signaled. If all APs returned from Procedure prior to the timeout, then
@ -254,7 +254,7 @@ StartupAllAPs (
This function is used to dispatch one enabled AP to the function specified by This function is used to dispatch one enabled AP to the function specified by
Procedure passing in the argument specified by ProcedureArgument. If WaitEvent Procedure passing in the argument specified by ProcedureArgument. If WaitEvent
is NULL, execution is in blocking mode. The BSP waits until the AP finishes or is NULL, execution is in blocking mode. The BSP waits until the AP finishes or
TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode. TimeoutInMicroSeconds expires. Otherwise, execution is in non-blocking mode.
BSP proceeds to the next task without waiting for the AP. If a non-blocking mode BSP proceeds to the next task without waiting for the AP. If a non-blocking mode
is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled, is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,
then EFI_UNSUPPORTED must be returned. then EFI_UNSUPPORTED must be returned.

View File

@ -776,7 +776,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.
// //
Status = EFI_SUCCESS; Status = EFI_SUCCESS;
while (Length != 0) { while (Length != 0) {
@ -838,7 +838,7 @@ Done:
Caller should make sure BaseAddress and Length is at page boundary. Caller should make sure BaseAddress and Length is at page boundary.
Caller need guarentee the TPL <= TPL_NOTIFY, if there is split page request. Caller need guarantee the TPL <= TPL_NOTIFY, if there is split page request.
@param[in] PagingContext The paging context. NULL means get page table from current CPU context. @param[in] PagingContext The paging context. NULL means get page table from current CPU context.
@param[in] BaseAddress The physical address that is the start address of a memory region. @param[in] BaseAddress The physical address that is the start address of a memory region.
@ -969,7 +969,7 @@ RefreshGcdMemoryAttributesFromPaging (
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
// //
// If we cannot udpate the capabilities, we cannot update its // If we cannot update the capabilities, we cannot update its
// attributes either. So just simply skip current block of memory. // attributes either. So just simply skip current block of memory.
// //
DEBUG (( DEBUG ((

View File

@ -78,7 +78,7 @@ VOID *
Caller should make sure BaseAddress and Length is at page boundary. Caller should make sure BaseAddress and Length is at page boundary.
Caller need guarentee the TPL <= TPL_NOTIFY, if there is split page request. Caller need guarantee the TPL <= TPL_NOTIFY, if there is split page request.
@param PagingContext The paging context. NULL means get page table from current CPU context. @param PagingContext The paging context. NULL means get page table from current CPU context.
@param BaseAddress The physical address that is the start address of a memory region. @param BaseAddress The physical address that is the start address of a memory region.