]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/PiSmmCore/Dispatcher.c
MdeModulePkg/Core/PiSmmCore: Fix various typos
[mirror_edk2.git] / MdeModulePkg / Core / PiSmmCore / Dispatcher.c
index e5a160ed0b921619ff0131b73cb0ea05f54291e4..9bec731e531240fe7ae761f07ba11b4f0e2b603b 100644 (file)
@@ -17,7 +17,7 @@
             and After dependencies. This is done recursively as the call to add\r
             to the mScheduledQueue checks for Before and recursively adds\r
             all Befores. It then addes the item that was passed in and then\r
-            processess the After dependecies by recursively calling the routine.\r
+            processes the After dependencies by recursively calling the routine.\r
 \r
   Dispatcher Rules:\r
   The rules for the dispatcher are similar to the DXE dispatcher.\r
@@ -25,7 +25,7 @@
   The rules for DXE dispatcher are in chapter 10 of the DXE CIS. Figure 10-3\r
   is the state diagram for the DXE dispatcher\r
 \r
-  Depex - Dependency Expresion.\r
+  Depex - Dependency Expression.\r
 \r
   Copyright (c) 2014, Hewlett-Packard Development Company, L.P.\r
   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
@@ -83,12 +83,12 @@ LIST_ENTRY  mScheduledQueue = INITIALIZE_LIST_HEAD_VARIABLE (mScheduledQueue);
 LIST_ENTRY  mFvHandleList = INITIALIZE_LIST_HEAD_VARIABLE (mFvHandleList);\r
 \r
 //\r
-// Flag for the SMM Dispacher.  TRUE if dispatcher is execuing.\r
+// Flag for the SMM Dispatcher.  TRUE if dispatcher is executing.\r
 //\r
 BOOLEAN  gDispatcherRunning = FALSE;\r
 \r
 //\r
-// Flag for the SMM Dispacher.  TRUE if there is one or more SMM drivers ready to be dispatched\r
+// Flag for the SMM Dispatcher.  TRUE if there is one or more SMM drivers ready to be dispatched\r
 //\r
 BOOLEAN  gRequestDispatch = FALSE;\r
 \r
@@ -175,7 +175,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
      return EFI_NOT_FOUND;\r
    }\r
    //\r
-   // Test if the memory is avalaible or not.\r
+   // Test if the memory is available or not.\r
    //\r
    BaseOffsetPageNumber = EFI_SIZE_TO_PAGES((UINT32)(ImageBase - SmmCodeBase));\r
    TopOffsetPageNumber  = EFI_SIZE_TO_PAGES((UINT32)(ImageBase + ImageSize - SmmCodeBase));\r
@@ -458,7 +458,7 @@ SmmLoadImage (
     Status = GetPeCoffImageFixLoadingAssignedAddress (&ImageContext);\r
     if (!EFI_ERROR (Status)) {\r
       //\r
-      // Since the memory range to load Smm core alreay been cut out, so no need to allocate and free this range\r
+      // Since the memory range to load Smm core already been cut out, so no need to allocate and free this range\r
       // following statements is to bypass SmmFreePages\r
       //\r
       PageCount = 0;\r
@@ -664,7 +664,7 @@ SmmLoadImage (
       //\r
       // Copy the PDB file name to our temporary string, and replace .pdb with .efi\r
       // The PDB file name is limited in the range of 0~255.\r
-      // If the length is bigger than 255, trim the redudant characters to avoid overflow in array boundary.\r
+      // If the length is bigger than 255, trim the redundant characters to avoid overflow in array boundary.\r
       //\r
       for (Index = 0; Index < sizeof (EfiFileName) - 4; Index++) {\r
         EfiFileName[Index] = ImageContext.PdbPointer[Index + StartIndex];\r
@@ -741,7 +741,7 @@ SmmPreProcessDepex (
 \r
   @param  DriverEntry           Driver to work on.\r
 \r
-  @retval EFI_SUCCESS           Depex read and preprossesed\r
+  @retval EFI_SUCCESS           Depex read and preprocessed\r
   @retval EFI_PROTOCOL_ERROR    The section extraction protocol returned an error\r
                                 and  Depex reading needs to be retried.\r
   @retval Error                 DEPEX not found.\r
@@ -1093,8 +1093,8 @@ FvHasBeenProcessed (
 }\r
 \r
 /**\r
-  Remember that Fv protocol on FvHandle has had it's drivers placed on the\r
-  mDiscoveredList. This fucntion adds entries on the mFvHandleList. Items are\r
+  Remember that Fv protocol on FvHandle has had its drivers placed on the\r
+  mDiscoveredList. This function adds entries on the mFvHandleList. Items are\r
   never removed/freed from the mFvHandleList.\r
 \r
   @param  FvHandle              The handle of a FV that has been processed\r
@@ -1165,7 +1165,7 @@ SmmFvToDevicePath (
 \r
 /**\r
   Add an entry to the mDiscoveredList. Allocate memory to store the DriverEntry,\r
-  and initilize any state variables. Read the Depex from the FV and store it\r
+  and initialize any state variables. Read the Depex from the FV and store it\r
   in DriverEntry. Pre-process the Depex to set the Before and After state.\r
   The Discovered list is never free'ed and contains booleans that represent the\r
   other possible SMM driver states.\r
@@ -1473,7 +1473,7 @@ SmmDriverDispatchHandler (
 \r
 /**\r
   Traverse the discovered list for any drivers that were discovered but not loaded\r
-  because the dependency experessions evaluated to false.\r
+  because the dependency expressions evaluated to false.\r
 \r
 **/\r
 VOID\r