]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Core/Pei: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:29 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-17-philmd@redhat.com>

MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
MdeModulePkg/Core/Pei/FwVol/FwVol.c
MdeModulePkg/Core/Pei/Hob/Hob.c
MdeModulePkg/Core/Pei/PeiMain.h
MdeModulePkg/Core/Pei/PeiMain/PeiMain.c

index a18ac47f617a80ab3c46bb97e9907a8a58b5735f..4c2eac1384e8e29b2578d3659b55beed3573a8c0 100644 (file)
@@ -257,7 +257,7 @@ PeiLoadFixAddressIsMemoryRangeAvailable (
 \r
   This function should only be invoked when Loading Module at Fixed Address(LMFA) feature is enabled. When feature is\r
   configured as Load Modules at Fix Absolute Address, this function is to validate the top address assigned by user. When\r
-  feature is configured as Load Modules at Fixed Offset, the functino is to find the top address which is TOLM-TSEG in general.\r
+  feature is configured as Load Modules at Fixed Offset, the function is to find the top address which is TOLM-TSEG in general.\r
   And also the function will re-install PEI memory.\r
 \r
   @param PrivateData         Pointer to the private data passed in from caller\r
@@ -604,7 +604,7 @@ PeiLoadFixAddressHook(
        );\r
     }\r
     //\r
-    // Delete CurrentHob by marking it as unused since the the memory range described by is rebuilt.\r
+    // Delete CurrentHob by marking it as unused since the memory range described by is rebuilt.\r
     //\r
     GET_HOB_TYPE (CurrentHob) = EFI_HOB_TYPE_UNUSED;\r
   }\r
@@ -751,7 +751,7 @@ PeiCheckAndSwitchStack (
 \r
     //\r
     // Calculate stack offset and heap offset between temporary memory and new permanent\r
-    // memory seperately.\r
+    // memory separately.\r
     //\r
     TopOfOldStack = (UINTN)SecCoreData->StackBase + SecCoreData->StackSize;\r
     TopOfNewStack = Private->PhysicalMemoryBegin + NewStackSize;\r
@@ -1229,7 +1229,7 @@ PeiDispatcher (
 \r
       //\r
       // Before walking through the next FV, we should set them to NULL/0 to\r
-      // start at the begining of the next FV.\r
+      // start at the beginning of the next FV.\r
       //\r
       Private->CurrentFileHandle = NULL;\r
       Private->CurrentPeimCount = 0;\r
@@ -1259,7 +1259,7 @@ PeiDispatcher (
 \r
   @param PrivateData     PeiCore's private data structure\r
   @param OldCoreData     Old data from SecCore\r
-                         NULL if being run in non-permament memory mode.\r
+                         NULL if being run in non-permanent memory mode.\r
   @param SecCoreData     Points to a data structure containing information about the PEI core's operating\r
                          environment, such as the size and location of temporary RAM, the stack location and\r
                          the BFV location.\r
index b3661146f29c8acb1a4e47f1b6471ef60bfe612d..fa1a3d3accb864da2a8c73f42fcde5ead6c78261 100644 (file)
@@ -178,7 +178,7 @@ CalculateHeaderChecksum (
   if (IS_FFS_FILE2 (FileHeader)) {\r
     CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER2));\r
     //\r
-    // Ingore State and File field in FFS header.\r
+    // Ignore State and File field in FFS header.\r
     //\r
     TestFileHeader.State = 0;\r
     TestFileHeader.IntegrityCheck.Checksum.File = 0;\r
@@ -187,7 +187,7 @@ CalculateHeaderChecksum (
   } else {\r
     CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER));\r
     //\r
-    // Ingore State and File field in FFS header.\r
+    // Ignore State and File field in FFS header.\r
     //\r
     TestFileHeader.State = 0;\r
     TestFileHeader.IntegrityCheck.Checksum.File = 0;\r
index e0e47fad25b99d7b3ff41b547df928a0ba29575f..4d8db2e7a5cb99845d342a5dfde6f35eccab2f69 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  This module provide Hand-Off Block manupulation.\r
+  This module provide Hand-Off Block manipulation.\r
 \r
 Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
index 6431bdaaacf6246c56f1e16b8c781dd213fb5d62..56b3bd85793d168a40fbc69a4e972c7b785dffa6 100644 (file)
@@ -282,7 +282,7 @@ struct _PEI_CORE_INSTANCE {
   EFI_PHYSICAL_ADDRESS               LoadModuleAtFixAddressTopAddress;\r
   //\r
   // The field is define for Loading modules at fixed address feature to tracker the PEI code\r
-  // memory range usage. It is a bit mapped array in which every bit indicates the correspoding memory page\r
+  // memory range usage. It is a bit mapped array in which every bit indicates the corresponding memory page\r
   // available or not.\r
   //\r
   UINT64                            *PeiCodeMemoryRangeUsageBitMap;\r
@@ -555,7 +555,7 @@ PeiLocatePpi (
 \r
   @retval EFI_SUCCESS           if successful\r
   @retval EFI_OUT_OF_RESOURCES  if no space in the database\r
-  @retval EFI_INVALID_PARAMETER if not a good decriptor\r
+  @retval EFI_INVALID_PARAMETER if not a good descriptor\r
 \r
 **/\r
 EFI_STATUS\r
index 025d7f98ec272760b7b6b5ae763a20b9c1f1c413..cca57c4c068643c97e7c027a10ca3fdbef9b19c5 100644 (file)
@@ -132,7 +132,7 @@ ShadowPeiCore (
   ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
-  // Compute the PeiCore's function address after shaowed PeiCore.\r
+  // Compute the PeiCore's function address after shadowed PeiCore.\r
   // _ModuleEntryPoint is PeiCore main function entry\r
   //\r
   return (PEICORE_FUNCTION_POINTER)((UINTN) EntryPoint + (UINTN) PeiCore - (UINTN) _ModuleEntryPoint);\r