\r
//\r
// If this function is called because GCD SetMemorySpaceAttributes () is called\r
- // by RefreshGcdMemoryAttributes (), then we are just synchronzing GCD memory\r
+ // by RefreshGcdMemoryAttributes (), then we are just synchronizing GCD memory\r
// map with MTRR values. So there is no need to modify MTRRs, just return immediately\r
// to avoid unnecessary computing.\r
//\r
CurrentCacheType = MtrrGetMemoryAttribute(BaseAddress);\r
if (CurrentCacheType != CacheType) {\r
//\r
- // call MTRR libary function\r
+ // call MTRR library function\r
//\r
Status = MtrrSetMemoryAttribute (\r
BaseAddress,\r
Attributes = CurrentAttributes;\r
} else {\r
//\r
- // If fixed MTRR attribute changed, then set memory attribute for previous atrribute\r
+ // If fixed MTRR attribute changed, then set memory attribute for previous attribute\r
//\r
if (CurrentAttributes != Attributes) {\r
SetGcdMemorySpaceAttributes (\r
@param Length Length of the MMIO space.\r
@param Capabilities Capabilities of the MMIO space.\r
\r
- @retval EFI_SUCCES The MMIO space was added successfully.\r
+ @retval EFI_SUCCESS The MMIO space was added successfully.\r
**/\r
EFI_STATUS\r
AddMemoryMappedIoSpace (\r
);\r
\r
/**\r
- Set memory cacheability attributes for given range of memeory.\r
+ Set memory cacheability attributes for given range of memory.\r
\r
@param This Protocol instance structure\r
@param BaseAddress Specifies the start address of the\r
/** @file\r
- C based implemention of IA32 interrupt handling only\r
+ C based implementation of IA32 interrupt handling only\r
requiring a minimal assembly interrupt entry point.\r
\r
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
/** @file\r
- C based implemention of IA32 interrupt handling only\r
+ C based implementation of IA32 interrupt handling only\r
requiring a minimal assembly interrupt entry point.\r
\r
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
and releases the BSP to continue with other tasks.\r
-# The caller can use the CheckEvent() and WaitForEvent() services to check\r
the state of the WaitEvent created in step 1.\r
- -# When the APs complete their task or TimeoutInMicroSecondss expires, the MP\r
+ -# When the APs complete their task or TimeoutInMicroSeconds expires, the MP\r
Service signals WaitEvent by calling the EFI SignalEvent() function. If\r
FailedCpuList is not NULL, its content is available when WaitEvent is\r
signaled. If all APs returned from Procedure prior to the timeout, then\r
This function is used to dispatch one enabled AP to the function specified by\r
Procedure passing in the argument specified by ProcedureArgument. If WaitEvent\r
is NULL, execution is in blocking mode. The BSP waits until the AP finishes or\r
- TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode.\r
+ TimeoutInMicroSeconds expires. Otherwise, execution is in non-blocking mode.\r
BSP proceeds to the next task without waiting for the AP. If a non-blocking mode\r
is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,\r
then EFI_UNSUPPORTED must be returned.\r
and releases the BSP to continue with other tasks.\r
-# The caller can use the CheckEvent() and WaitForEvent() services to check\r
the state of the WaitEvent created in step 1.\r
- -# When the APs complete their task or TimeoutInMicroSecondss expires, the MP\r
+ -# When the APs complete their task or TimeoutInMicroSeconds expires, the MP\r
Service signals WaitEvent by calling the EFI SignalEvent() function. If\r
FailedCpuList is not NULL, its content is available when WaitEvent is\r
signaled. If all APs returned from Procedure prior to the timeout, then\r
This function is used to dispatch one enabled AP to the function specified by\r
Procedure passing in the argument specified by ProcedureArgument. If WaitEvent\r
is NULL, execution is in blocking mode. The BSP waits until the AP finishes or\r
- TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode.\r
+ TimeoutInMicroSeconds expires. Otherwise, execution is in non-blocking mode.\r
BSP proceeds to the next task without waiting for the AP. If a non-blocking mode\r
is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,\r
then EFI_UNSUPPORTED must be returned.\r
}\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
Status = EFI_SUCCESS;\r
while (Length != 0) {\r
\r
Caller should make sure BaseAddress and Length is at page boundary.\r
\r
- Caller need guarentee the TPL <= TPL_NOTIFY, if there is split page request.\r
+ Caller need guarantee the TPL <= TPL_NOTIFY, if there is split page request.\r
\r
@param[in] PagingContext The paging context. NULL means get page table from current CPU context.\r
@param[in] BaseAddress The physical address that is the start address of a memory region.\r
);\r
if (EFI_ERROR (Status)) {\r
//\r
- // If we cannot udpate the capabilities, we cannot update its\r
+ // If we cannot update the capabilities, we cannot update its\r
// attributes either. So just simply skip current block of memory.\r
//\r
DEBUG ((\r
\r
Caller should make sure BaseAddress and Length is at page boundary.\r
\r
- Caller need guarentee the TPL <= TPL_NOTIFY, if there is split page request.\r
+ Caller need guarantee the TPL <= TPL_NOTIFY, if there is split page request.\r
\r
@param PagingContext The paging context. NULL means get page table from current CPU context.\r
@param BaseAddress The physical address that is the start address of a memory region.\r