]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/Memory/MemoryServices.c
MdeModulePkg PeiCore: Fix typos
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Memory / MemoryServices.c
index 706837890fde0658ca601d347f136b6bcd3b9f72..838a003baaf238719c2dfe715fe09087aec3e4f6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   EFI PEI Core memory services\r
 \r
-Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -17,7 +17,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
                          environment, such as the size and location of temporary RAM, the stack location and\r
                          the BFV location.\r
   @param OldCoreData     Pointer to the PEI Core data.\r
-                         NULL if being run in non-permament memory mode.\r
+                         NULL if being run in non-permanent memory mode.\r
 \r
 **/\r
 VOID\r
@@ -32,7 +32,7 @@ InitializeMemoryServices (
 \r
   //\r
   // First entering PeiCore, following code will initialized some field\r
-  // in PeiCore's private data according to hand off data from sec core.\r
+  // in PeiCore's private data according to hand off data from SEC core.\r
   //\r
   if (OldCoreData == NULL) {\r
 \r
@@ -61,7 +61,7 @@ InitializeMemoryServices (
   The usage model is that the PEIM that discovers the permanent memory shall invoke this service.\r
   This routine will hold discoveried memory information into PeiCore's private data,\r
   and set SwitchStackSignal flag. After PEIM who discovery memory is dispatched,\r
-  PeiDispatcher will migrate temporary memory to permenement memory.\r
+  PeiDispatcher will migrate temporary memory to permanent memory.\r
 \r
   @param PeiServices        An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.\r
   @param MemoryBegin        Start of memory address.\r
@@ -86,7 +86,7 @@ PeiInstallPeiMemory (
   //\r
   // PEI_SERVICE.InstallPeiMemory should only be called one time during whole PEI phase.\r
   // If it is invoked more than one time, ASSERT information is given for developer debugging in debug tip and\r
-  // simply return EFI_SUCESS in release tip to ignore it.\r
+  // simply return EFI_SUCCESS in release tip to ignore it.\r
   //\r
   if (PrivateData->PeiMemoryInstalled) {\r
     DEBUG ((EFI_D_ERROR, "ERROR: PeiInstallPeiMemory is called more than once!\n"));\r
@@ -758,8 +758,8 @@ PeiFreePages (
 \r
 /**\r
 \r
-  Pool allocation service. Before permanent memory is discoveried, the pool will\r
-  be allocated the heap in the temporary memory. Genenrally, the size of heap in temporary\r
+  Pool allocation service. Before permanent memory is discovered, the pool will\r
+  be allocated the heap in the temporary memory. Generally, the size of heap in temporary\r
   memory does not exceed to 64K, so the biggest pool size could be allocated is\r
   64K.\r
 \r
@@ -790,7 +790,7 @@ PeiAllocatePool (
 \r
   //\r
   // Generally, the size of heap in temporary memory does not exceed to 64K,\r
-  // HobLength is multiples of 8 bytes, so the maxmium size of pool is 0xFFF8 - sizeof (EFI_HOB_MEMORY_POOL)\r
+  // HobLength is multiples of 8 bytes, so the maximum size of pool is 0xFFF8 - sizeof (EFI_HOB_MEMORY_POOL)\r
   //\r
   if (Size > (0xFFF8 - sizeof (EFI_HOB_MEMORY_POOL))) {\r
     return EFI_OUT_OF_RESOURCES;\r