]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuDxe: Fix few typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:08:29 +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 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>

UefiCpuPkg/CpuDxe/CpuDxe.c
UefiCpuPkg/CpuDxe/CpuDxe.h
UefiCpuPkg/CpuDxe/CpuGdt.c
UefiCpuPkg/CpuDxe/CpuGdt.h
UefiCpuPkg/CpuDxe/CpuMp.c
UefiCpuPkg/CpuDxe/CpuMp.h
UefiCpuPkg/CpuDxe/CpuPageTable.c
UefiCpuPkg/CpuDxe/CpuPageTable.h

index 7d7270e10b4aed9a4be5321ff4678516e06bd95d..a571fc3b175076cf07a99f27606e5f7831179f24 100644 (file)
@@ -393,7 +393,7 @@ CpuSetMemoryAttributes (
 \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
@@ -456,7 +456,7 @@ CpuSetMemoryAttributes (
     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
@@ -831,7 +831,7 @@ RefreshMemoryAttributesFromMtrr (
         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
@@ -1045,7 +1045,7 @@ IntersectMemoryDescriptor (
   @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
index a6762f1a0b78c1db6f50aa388d70b54e54ece24d..9299eaa63d8ac43575cc796cffc090448def7196 100644 (file)
@@ -208,7 +208,7 @@ CpuGetTimerValue (
   );\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
index 87fd6955f24bfa412de9d5d0e9f12dd2aba764e9..64efadeba60141fc5f2146f7943672c8901c712a 100644 (file)
@@ -1,5 +1,5 @@
 /** @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
index e5c36f37b96ade675ffaaa046cd6f522c3798cad..3a0210b2f172d3426119c6f5f1c583e60c25355b 100644 (file)
@@ -1,5 +1,5 @@
 /** @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
index de6c6a5c330c97fadc23df164ad0f3af98bfa0e4..60ede38df4fccf377b7606d4514fea60b4e770c7 100644 (file)
@@ -164,7 +164,7 @@ GetProcessorInfo (
        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
@@ -281,7 +281,7 @@ StartupAllAPs (
   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
index e7e115fc8f3d4550589b97fbf51138c99815bd79..4ee171d8c49110b23f9ff3feb6d8ba87fcff19f0 100644 (file)
@@ -147,7 +147,7 @@ GetProcessorInfo (
        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
@@ -254,7 +254,7 @@ StartupAllAPs (
   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
index cb121771425ac147d9433441c8e7471d37579a78..0a02cb3f6b7e1606536126368738d04c5ed74f7a 100644 (file)
@@ -776,7 +776,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
   Status = EFI_SUCCESS;\r
   while (Length != 0) {\r
@@ -838,7 +838,7 @@ Done:
 \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
@@ -969,7 +969,7 @@ RefreshGcdMemoryAttributesFromPaging (
                     );\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
index bad6784bcb51caae35dd188375c2f8af51b45492..0b2a02a2be5c35629ec69c32105c92fbbb147673 100644 (file)
@@ -78,7 +78,7 @@ VOID *
 \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