summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2016-10-19 15:01:23 +0800
committerFeng Tian <feng.tian@intel.com>2016-10-27 09:11:17 +0800
commit6393d9c8e2ff43c7322c1bce9c1fe4492171f2bd (patch)
treec73732996f244f698ea5274a6f0c174557d07c4d /MdeModulePkg/Core/Pei
parented356b9e80d46c40457dd90f5352835e6611200b (diff)
downloadedk2-6393d9c8e2ff43c7322c1bce9c1fe4492171f2bd.tar.gz
edk2-6393d9c8e2ff43c7322c1bce9c1fe4492171f2bd.tar.bz2
edk2-6393d9c8e2ff43c7322c1bce9c1fe4492171f2bd.zip
MdeModulePkg/Core: Fix typos in comments
- paramters -> parameters - funciton -> function - dependecy -> dependency - evauated -> evaluated - genric -> generic - retore -> restore - Protocl -> Protocol - availible -> available - elasped -> elapsed - sarted -> started - boundry -> boundary - permenent -> permanent - debuging -> debugging - availble -> available Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c12
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c2
-rw-r--r--MdeModulePkg/Core/Pei/Memory/MemoryServices.c2
-rw-r--r--MdeModulePkg/Core/Pei/PeiMain.h4
-rw-r--r--MdeModulePkg/Core/Pei/PeiMain/PeiMain.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 715e9d2d83..3934ed0a4a 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -671,8 +671,8 @@ PeiCheckAndSwitchStack (
if (Private->SwitchStackSignal) {
//
- // Before switch stack from temporary memory to permenent memory, calculate the heap and stack
- // usage in temporary memory for debuging.
+ // Before switch stack from temporary memory to permanent memory, calculate the heap and stack
+ // usage in temporary memory for debugging.
//
DEBUG_CODE_BEGIN ();
UINT32 *StackPointer;
@@ -709,10 +709,10 @@ PeiCheckAndSwitchStack (
//
// Reserve the size of new stack at bottom of physical memory
//
- // The size of new stack in permenent memory must be the same size
+ // The size of new stack in permanent memory must be the same size
// or larger than the size of old stack in temporary memory.
// But if new stack is smaller than the size of old stack, we also reserve
- // the size of old stack at bottom of permenent memory.
+ // the size of old stack at bottom of permanent memory.
//
NewStackSize = RShiftU64 (Private->PhysicalMemoryLength, 1);
NewStackSize = ALIGN_VALUE (NewStackSize, EFI_PAGE_SIZE);
@@ -789,7 +789,7 @@ PeiCheckAndSwitchStack (
//
// Temporary Ram Support PPI is provided by platform, it will copy
- // temporary memory to permenent memory and do stack switching.
+ // temporary memory to permanent memory and do stack switching.
// After invoking Temporary Ram Support PPI, the following code's
// stack is in permanent memory.
//
@@ -1142,7 +1142,7 @@ PeiDispatcher (
if ((Private->PeiMemoryInstalled) && (Private->Fv[FvCount].PeimState[PeimCount] == PEIM_STATE_REGISITER_FOR_SHADOW) && \
(Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME || PcdGetBool (PcdShadowPeimOnS3Boot))) {
//
- // If memory is availble we shadow images by default for performance reasons.
+ // If memory is available we shadow images by default for performance reasons.
// We call the entry point a 2nd time so the module knows it's shadowed.
//
//PERF_START (PeiServices, L"PEIM", PeimFileHandle, 0);
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index 6ca41ee16f..d2eb0bc35b 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -2019,7 +2019,7 @@ FindNextCoreFvHandle (
/**
After PeiCore image is shadowed into permanent memory, all build-in FvPpi should
be re-installed with the instance in permanent memory and all cached FvPpi pointers in
- PrivateData->Fv[] array should be fixed up to be pointed to the one in permenant
+ PrivateData->Fv[] array should be fixed up to be pointed to the one in permanent
memory.
@param PrivateData Pointer to PEI_CORE_INSTANCE.
diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
index 2f9b9dea31..4efe14313c 100644
--- a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
+++ b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
@@ -222,7 +222,7 @@ PeiAllocatePages (
/**
- Pool allocation service. Before permenent memory is discoveried, the pool will
+ Pool allocation service. Before permanent memory is discoveried, the pool will
be allocated the heap in the temporary memory. Genenrally, the size of heap in temporary
memory does not exceed to 64K, so the biggest pool size could be allocated is
64K.
diff --git a/MdeModulePkg/Core/Pei/PeiMain.h b/MdeModulePkg/Core/Pei/PeiMain.h
index 24983201d0..69eea51492 100644
--- a/MdeModulePkg/Core/Pei/PeiMain.h
+++ b/MdeModulePkg/Core/Pei/PeiMain.h
@@ -1119,7 +1119,7 @@ PeiRegisterForShadow (
@param OldCoreData Pointer to Old PeiCore's private data.
If NULL, PeiCore is entered at first time, stack/heap in temporary memory.
If not NULL, PeiCore is entered at second time, stack/heap has been moved
- to permenent memory.
+ to permanent memory.
**/
VOID
@@ -1732,7 +1732,7 @@ extern EFI_PEI_PCI_CFG2_PPI gPeiDefaultPciCfg2Ppi;
/**
After PeiCore image is shadowed into permanent memory, all build-in FvPpi should
be re-installed with the instance in permanent memory and all cached FvPpi pointers in
- PrivateData->Fv[] array should be fixed up to be pointed to the one in permenant
+ PrivateData->Fv[] array should be fixed up to be pointed to the one in permanent
memory.
@param PrivateData Pointer to PEI_CORE_INSTANCE.
diff --git a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
index 956200f312..fed34f3552 100644
--- a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
+++ b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
@@ -218,7 +218,7 @@ PeiCore (
SetPeiServicesTablePointer ((CONST EFI_PEI_SERVICES **)&OldCoreData->Ps);
//
- // Update HandOffHob for new installed permenent memory
+ // Update HandOffHob for new installed permanent memory
//
HandoffInformationTable = OldCoreData->HobList.HandoffInformationTable;
if (OldCoreData->HeapOffsetPositive) {
@@ -238,7 +238,7 @@ PeiCore (
//
// After the whole temporary memory is migrated, then we can allocate page in
- // permenent memory.
+ // permanent memory.
//
OldCoreData->PeiMemoryInstalled = TRUE;