From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web10.8236.1575389849154776870 for ; Tue, 03 Dec 2019 08:17:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AM0A0uA1; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575389848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UYwFFHhtjAdpYwHcIANaVAMAhC97ES1Vd3KBh3tFgG0=; b=AM0A0uA1DPAzf7D2JdfkQLQJBq5YvVkI8FPESRSuVCs8YX/sREFI/Qd/3rWSY7H4Q/uqQF /yO8FHQbKMVchRMdWOzxU6leVIFC7NgqQxaO617ggWyipVJ+yFhGf6IHeMxqNfSbXpQEDK frjwf66cYFMcSzlKDRbWL9cVZyU2+Rg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-IQLZLckzOXeovT-EZw932Q-1; Tue, 03 Dec 2019 11:17:26 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 31C57800D4C; Tue, 3 Dec 2019 16:17:25 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00ADC60C80; Tue, 3 Dec 2019 16:17:22 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jian J Wang , Hao A Wu , Philippe Mathieu-Daude Subject: [PATCH 19/79] MdeModulePkg/Core/PiSmmCore: Fix various typos Date: Tue, 3 Dec 2019 17:15:02 +0100 Message-Id: <20191203161602.15969-20-philmd@redhat.com> In-Reply-To: <20191203161602.15969-1-philmd@redhat.com> References: <20191203161602.15969-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: IQLZLckzOXeovT-EZw932Q-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in comments and documentation. Cc: Jian J Wang Cc: Hao A Wu Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude --- MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf | 10 ++++---- MdeModulePkg/Core/PiSmmCore/HeapGuard.h | 2 +- MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 12 +++++----- MdeModulePkg/Core/PiSmmCore/PiSmmCorePrivateData.h | 6 ++--- MdeModulePkg/Core/PiSmmCore/Dependency.c | 4 ++-- MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 24 ++++++++++-------= --- MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 4 ++-- MdeModulePkg/Core/PiSmmCore/Locate.c | 8 +++---- MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | 8 +++---- MdeModulePkg/Core/PiSmmCore/Page.c | 4 ++-- MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 10 ++++---- MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 8 +++---- MdeModulePkg/Core/PiSmmCore/Smi.c | 2 +- MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c | 4 ++-- 14 files changed, 53 insertions(+), 53 deletions(-) diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf b/MdeModulePkg/Core/P= iSmmCore/PiSmmIpl.inf index b6b1bbcdac51..619603d6c2a0 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf @@ -57,23 +57,23 @@ [Protocols] gEfiSmmControl2ProtocolGuid ## CONSUMES ## NOTIFY ## SOMETIMES_CONSUMES - ## UNDEFINED # Used to do smm communcation + ## UNDEFINED # Used to do smm communication gEfiDxeSmmReadyToLockProtocolGuid gEfiCpuArchProtocolGuid ## SOMETIMES_CONSUMES =20 [Guids] ## CONSUMES ## Event - ## PRODUCES ## UNDEFINED # Used to do smm communcation + ## PRODUCES ## UNDEFINED # Used to do smm communication gEfiEventDxeDispatchGuid gEfiEventReadyToBootGuid ## CONSUMES ##= Event ## SOMETIMES_CONSUMES ## Event - ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communcation + ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communication gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event - ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communcation + ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communication gEfiEventExitBootServicesGuid ## SOMETIMES_CONSUMES ## Event - ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communcation + ## SOMETIMES_PRODUCES ## UNDEFINED # Used to do smm communication gEfiEventReadyToBootGuid gEfiEventVirtualAddressChangeGuid ## CONSUMES ##= Event gEfiEndOfDxeEventGroupGuid ## CONSUMES ##= Event diff --git a/MdeModulePkg/Core/PiSmmCore/HeapGuard.h b/MdeModulePkg/Core/Pi= SmmCore/HeapGuard.h index 9077db1a8496..1b5c0f2a4f57 100644 --- a/MdeModulePkg/Core/PiSmmCore/HeapGuard.h +++ b/MdeModulePkg/Core/PiSmmCore/HeapGuard.h @@ -39,7 +39,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // // For a normal configuration of system with 4G memory, two levels of tabl= es // can track the whole memory, because two levels (L3+L4) of map tables ha= ve -// already coverred 37-bit of memory address. And for a normal UEFI BIOS, +// already covered 37-bit of memory address. And for a normal UEFI BIOS, // less than 128M memory would be consumed during boot. That means we just // need // diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h b/MdeModulePkg/Core/Pi= SmmCore/PiSmmCore.h index 0908e7f4e9e7..50a7fc0000cb 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h @@ -171,7 +171,7 @@ typedef struct { EFI_GUID ProtocolID; /// All protocol interfaces LIST_ENTRY Protocols; - /// Registerd notification handlers + /// Registered notification handlers LIST_ENTRY Notify; } PROTOCOL_ENTRY; =20 @@ -562,7 +562,7 @@ SmmLocateHandle ( /** Return the first Protocol Interface that matches the Protocol GUID. If Registration is pasased in return a Protocol Instance that was just add - to the system. If Retistration is NULL return the first Protocol Interfa= ce + to the system. If Registration is NULL return the first Protocol Interfa= ce you find. =20 @param Protocol The protocol to search for @@ -602,7 +602,7 @@ SmmLocateProtocol ( @retval EFI_NOT_FOUND No handles match the search. @retval EFI_OUT_OF_RESOURCES There is not enough pool memory to store = the matching results. - @retval EFI_INVALID_PARAMETER One or more paramters are not valid. + @retval EFI_INVALID_PARAMETER One or more parameters are not valid. =20 **/ EFI_STATUS @@ -641,7 +641,7 @@ SmiManage ( /** Registers a handler to execute within SMM. =20 - @param Handler Handler service funtion pointer. + @param Handler Handler service function pointer. @param HandlerType Points to the handler type or NULL for root SMI h= andlers. @param DispatchHandle On return, contains a unique handle which can be = used to later unregister the handler function. =20 @@ -873,12 +873,12 @@ SmmEfiNotAvailableYetArg5 ( ); =20 // -//Functions used during debug buils +//Functions used during debug builds // =20 /** Traverse the discovered list for any drivers that were discovered but no= t loaded - because the dependency experessions evaluated to false. + because the dependency expressions evaluated to false. =20 **/ VOID diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCorePrivateData.h b/MdeModule= Pkg/Core/PiSmmCore/PiSmmCorePrivateData.h index 1d8af6f12767..28f95d9b024b 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCorePrivateData.h +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCorePrivateData.h @@ -65,7 +65,7 @@ typedef struct { =20 /// /// The SMM Foundation Entry Point. The SMM Core fills in this field wh= en the - /// SMM Core is initialized. The SMM IPL is responsbile for registering= this entry + /// SMM Core is initialized. The SMM IPL is responsible for registering= this entry /// point with the SMM Configuration Protocol. The SMM Configuration Pr= otocol may /// not be available at the time the SMM IPL and SMM Core are started, s= o the SMM IPL /// sets up a protocol notification on the SMM Configuration Protocol an= d registers @@ -92,14 +92,14 @@ typedef struct { EFI_SMM_SYSTEM_TABLE2 *Smst; =20 /// - /// This field is used by the SMM Communicatioon Protocol to pass a buff= er into + /// This field is used by the SMM Communication Protocol to pass a buffe= r into /// a software SMI handler and for the software SMI handler to pass a bu= ffer back to /// the caller of the SMM Communication Protocol. /// VOID *CommunicationBuffer; =20 /// - /// This field is used by the SMM Communicatioon Protocol to pass the si= ze of a buffer, + /// This field is used by the SMM Communication Protocol to pass the siz= e of a buffer, /// in bytes, into a software SMI handler and for the software SMI handl= er to pass the /// size, in bytes, of a buffer back to the caller of the SMM Communicat= ion Protocol. /// diff --git a/MdeModulePkg/Core/PiSmmCore/Dependency.c b/MdeModulePkg/Core/P= iSmmCore/Dependency.c index dfd4537f846a..1167807b151b 100644 --- a/MdeModulePkg/Core/PiSmmCore/Dependency.c +++ b/MdeModulePkg/Core/PiSmmCore/Dependency.c @@ -192,7 +192,7 @@ SmmIsSchedulable ( if (DriverEntry->Depex =3D=3D NULL) { // // A NULL Depex means that the SMM driver is not built correctly. - // All SMM drivers must have a valid depex expressiion. + // All SMM drivers must have a valid depex expression. // DEBUG ((DEBUG_DISPATCH, " RESULT =3D FALSE (Depex is empty)\n")); ASSERT (FALSE); @@ -371,7 +371,7 @@ SmmIsSchedulable ( // The math is done out of order, but it should not matter. That is // we may add in the sizeof (EFI_GUID) before we account for the OP Co= de. // This is not an issue, since we just need the correct end result. Yo= u - // need to be careful using Iterator in the loop as it's intermediate = value + // need to be careful using Iterator in the loop as its intermediate v= alue // may be strange. // Iterator++; diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c b/MdeModulePkg/Core/P= iSmmCore/Dispatcher.c index e5a160ed0b92..9bec731e5312 100644 --- a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c +++ b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c @@ -17,7 +17,7 @@ and After dependencies. This is done recursively as the call t= o add to the mScheduledQueue checks for Before and recursively adds all Befores. It then addes the item that was passed in and the= n - processess the After dependecies by recursively calling the ro= utine. + processes the After dependencies by recursively calling the ro= utine. =20 Dispatcher Rules: The rules for the dispatcher are similar to the DXE dispatcher. @@ -25,7 +25,7 @@ The rules for DXE dispatcher are in chapter 10 of the DXE CIS. Figure 10= -3 is the state diagram for the DXE dispatcher =20 - Depex - Dependency Expresion. + Depex - Dependency Expression. =20 Copyright (c) 2014, Hewlett-Packard Development Company, L.P. Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
@@ -83,12 +83,12 @@ LIST_ENTRY mScheduledQueue =3D INITIALIZE_LIST_HEAD_VA= RIABLE (mScheduledQueue); LIST_ENTRY mFvHandleList =3D INITIALIZE_LIST_HEAD_VARIABLE (mFvHandleList= ); =20 // -// Flag for the SMM Dispacher. TRUE if dispatcher is execuing. +// Flag for the SMM Dispatcher. TRUE if dispatcher is executing. // BOOLEAN gDispatcherRunning =3D FALSE; =20 // -// Flag for the SMM Dispacher. TRUE if there is one or more SMM drivers r= eady to be dispatched +// Flag for the SMM Dispatcher. TRUE if there is one or more SMM drivers = ready to be dispatched // BOOLEAN gRequestDispatch =3D FALSE; =20 @@ -175,7 +175,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap ( return EFI_NOT_FOUND; } // - // Test if the memory is avalaible or not. + // Test if the memory is available or not. // BaseOffsetPageNumber =3D EFI_SIZE_TO_PAGES((UINT32)(ImageBase - SmmCode= Base)); TopOffsetPageNumber =3D EFI_SIZE_TO_PAGES((UINT32)(ImageBase + ImageSi= ze - SmmCodeBase)); @@ -458,7 +458,7 @@ SmmLoadImage ( Status =3D GetPeCoffImageFixLoadingAssignedAddress (&ImageContext); if (!EFI_ERROR (Status)) { // - // Since the memory range to load Smm core alreay been cut out, so n= o need to allocate and free this range + // Since the memory range to load Smm core already been cut out, so = no need to allocate and free this range // following statements is to bypass SmmFreePages // PageCount =3D 0; @@ -664,7 +664,7 @@ SmmLoadImage ( // // Copy the PDB file name to our temporary string, and replace .pdb = with .efi // The PDB file name is limited in the range of 0~255. - // If the length is bigger than 255, trim the redudant characters to= avoid overflow in array boundary. + // If the length is bigger than 255, trim the redundant characters t= o avoid overflow in array boundary. // for (Index =3D 0; Index < sizeof (EfiFileName) - 4; Index++) { EfiFileName[Index] =3D ImageContext.PdbPointer[Index + StartIndex]= ; @@ -741,7 +741,7 @@ SmmPreProcessDepex ( =20 @param DriverEntry Driver to work on. =20 - @retval EFI_SUCCESS Depex read and preprossesed + @retval EFI_SUCCESS Depex read and preprocessed @retval EFI_PROTOCOL_ERROR The section extraction protocol returned a= n error and Depex reading needs to be retried. @retval Error DEPEX not found. @@ -1093,8 +1093,8 @@ FvHasBeenProcessed ( } =20 /** - Remember that Fv protocol on FvHandle has had it's drivers placed on the - mDiscoveredList. This fucntion adds entries on the mFvHandleList. Items = are + Remember that Fv protocol on FvHandle has had its drivers placed on the + mDiscoveredList. This function adds entries on the mFvHandleList. Items = are never removed/freed from the mFvHandleList. =20 @param FvHandle The handle of a FV that has been processed @@ -1165,7 +1165,7 @@ SmmFvToDevicePath ( =20 /** Add an entry to the mDiscoveredList. Allocate memory to store the Driver= Entry, - and initilize any state variables. Read the Depex from the FV and store = it + and initialize any state variables. Read the Depex from the FV and store= it in DriverEntry. Pre-process the Depex to set the Before and After state. The Discovered list is never free'ed and contains booleans that represen= t the other possible SMM driver states. @@ -1473,7 +1473,7 @@ SmmDriverDispatchHandler ( =20 /** Traverse the discovered list for any drivers that were discovered but no= t loaded - because the dependency experessions evaluated to false. + because the dependency expressions evaluated to false. =20 **/ VOID diff --git a/MdeModulePkg/Core/PiSmmCore/HeapGuard.c b/MdeModulePkg/Core/Pi= SmmCore/HeapGuard.c index 29cd00f3897d..b0d0f72044a3 100644 --- a/MdeModulePkg/Core/PiSmmCore/HeapGuard.c +++ b/MdeModulePkg/Core/PiSmmCore/HeapGuard.c @@ -497,7 +497,7 @@ IsMemoryGuarded ( /** Set the page at the given address to be a Guard page. =20 - This is done by changing the page table attribute to be NOT PRSENT. + This is done by changing the page table attribute to be NOT PRESENT. =20 @param[in] BaseAddress Page address to Guard at. =20 @@ -527,7 +527,7 @@ SetGuardPage ( /** Unset the Guard page at the given address to the normal memory. =20 - This is done by changing the page table attribute to be PRSENT. + This is done by changing the page table attribute to be PRESENT. =20 @param[in] BaseAddress Page address to Guard at. =20 diff --git a/MdeModulePkg/Core/PiSmmCore/Locate.c b/MdeModulePkg/Core/PiSmm= Core/Locate.c index 85c6873fafe2..8458199ec86c 100644 --- a/MdeModulePkg/Core/PiSmmCore/Locate.c +++ b/MdeModulePkg/Core/PiSmmCore/Locate.c @@ -34,7 +34,7 @@ IHANDLE * /** Routine to get the next Handle, when you are searching for all handles. =20 - @param Position Information about which Handle to seach f= or. + @param Position Information about which Handle to search = for. @param Interface Return the interface structure for the ma= tching protocol. =20 @@ -70,7 +70,7 @@ SmmGetNextLocateAllHandles ( Routine to get the next Handle, when you are searching for register prot= ocol notifies. =20 - @param Position Information about which Handle to seach f= or. + @param Position Information about which Handle to search = for. @param Interface Return the interface structure for the ma= tching protocol. =20 @@ -116,7 +116,7 @@ SmmGetNextLocateByRegisterNotify ( /** Routine to get the next Handle, when you are searching for a given proto= col. =20 - @param Position Information about which Handle to seach f= or. + @param Position Information about which Handle to search = for. @param Interface Return the interface structure for the ma= tching protocol. =20 @@ -173,7 +173,7 @@ SmmGetNextLocateByProtocol ( /** Return the first Protocol Interface that matches the Protocol GUID. If Registration is pasased in return a Protocol Instance that was just add - to the system. If Retistration is NULL return the first Protocol Interfa= ce + to the system. If Registration is NULL return the first Protocol Interfa= ce you find. =20 @param Protocol The protocol to search for diff --git a/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c b/MdeModul= ePkg/Core/PiSmmCore/MemoryAttributesTable.c index d6123da3ad1a..de8262ecb9f9 100644 --- a/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c +++ b/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c @@ -152,7 +152,7 @@ SortMemoryMap ( } =20 /** - Merge continous memory map entries whose have same attributes. + Merge continuous memory map entries whose have same attributes. =20 @param[in, out] MemoryMap A pointer to the buffer in which= firmware places the current memory map. @@ -300,7 +300,7 @@ GetImageRecordByAddress ( @param[in] ImageRecord An image record whose [ImageBase= , ImageSize] covered by old memory map entry. @param[in, out] NewRecord A pointer to several new memory = map entries. - The caller gurantee the buffer s= ize be 1 + + The caller guarantee the buffer = size be 1 + (SplitRecordCount * DescriptorSi= ze) calculated below. @param[in] OldRecord A pointer to one old memory map = entry. @@ -450,7 +450,7 @@ GetMaxSplitRecordCount ( =20 @param[in] OldRecord A pointer to one old memory map = entry. @param[in, out] NewRecord A pointer to several new memory = map entries. - The caller gurantee the buffer s= ize be 1 + + The caller guarantee the buffer = size be 1 + (SplitRecordCount * DescriptorSi= ze) calculated below. @param[in] MaxSplitRecordCount The max number of splitted entri= es @@ -667,7 +667,7 @@ SplitTable ( This function for GetMemoryMap() with memory attributes table. =20 It calls original GetMemoryMap() to get the original memory map informat= ion. Then - plus the additional memory map entries for PE Code/Data seperation. + plus the additional memory map entries for PE Code/Data separation. =20 @param[in, out] MemoryMapSize A pointer to the size, in bytes,= of the MemoryMap buffer. On input, this= is the size of diff --git a/MdeModulePkg/Core/PiSmmCore/Page.c b/MdeModulePkg/Core/PiSmmCo= re/Page.c index 1f05bddcc0b8..d886187d9a4a 100644 --- a/MdeModulePkg/Core/PiSmmCore/Page.c +++ b/MdeModulePkg/Core/PiSmmCore/Page.c @@ -83,7 +83,7 @@ SmmInternalAllocatePagesEx ( Please Note this algorithm to allocate the memory map descriptor has a p= roperty that the memory allocated for memory entries always grows, and will neve= r really be freed. =20 - @return The Memory map descriptor dequed from the mFreeMemoryMapEntryLis= t + @return The Memory map descriptor dequeued from the mFreeMemoryMapEntryL= ist =20 **/ MEMORY_MAP * @@ -117,7 +117,7 @@ AllocateMemoryMapEntry ( FreeDescriptorEntries =3D (MEMORY_MAP *)(UINTN)Mem; //DEBUG((DEBUG_INFO, "New FreeDescriptorEntries - 0x%x\n", FreeDescr= iptorEntries)); // - // Enque the free memmory map entries into the list + // Enqueue the free memory map entries into the list // for (Index =3D 0; Index< RUNTIME_PAGE_ALLOCATION_GRANULARITY / sizeo= f(MEMORY_MAP); Index++) { FreeDescriptorEntries[Index].Signature =3D MEMORY_MAP_SIGNATURE; diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/Pi= SmmCore/PiSmmCore.c index b5676f21bf26..cfa9922cbdb5 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c @@ -373,7 +373,7 @@ SmmReadyToLockHandler ( ); =20 // - // Make sure SMM CPU I/O 2 Procol has been installed into the handle dat= abase + // Make sure SMM CPU I/O 2 Protocol has been installed into the handle d= atabase // Status =3D SmmLocateProtocol (&gEfiSmmCpuIo2ProtocolGuid, NULL, &Interfa= ce); =20 @@ -586,7 +586,7 @@ SmmEndOfS3ResumeHandler ( ASSERT_EFI_ERROR (Status); =20 // - // Uninstall the protocol here because the comsumer just hook the + // Uninstall the protocol here because the consumer just hook the // installation event. // Status =3D SmmUninstallProtocolInterface ( @@ -673,7 +673,7 @@ SmmEntryPoint ( SmmEntryPointMemoryManagementHook (); =20 // - // If a legacy boot has occured, then make sure gSmmCorePrivate is not a= ccessed + // If a legacy boot has occurred, then make sure gSmmCorePrivate is not = accessed // InLegacyBoot =3D mInLegacyBoot; if (!InLegacyBoot) { @@ -737,7 +737,7 @@ SmmEntryPoint ( PlatformHookAfterSmmDispatch (); =20 // - // If a legacy boot has occured, then make sure gSmmCorePrivate is not a= ccessed + // If a legacy boot has occurred, then make sure gSmmCorePrivate is not = accessed // if (!InLegacyBoot) { // @@ -867,7 +867,7 @@ SmmMain ( // // No need to initialize memory service. // It is done in constructor of PiSmmCoreMemoryAllocationLib(), - // so that the library linked with PiSmmCore can use AllocatePool() in c= onstuctor. + // so that the library linked with PiSmmCore can use AllocatePool() in c= onstructor. // =20 SmramProfileInit (); diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c b/MdeModulePkg/Core/PiS= mmCore/PiSmmIpl.c index 1cf8c93227a3..20b84eaee277 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c @@ -707,7 +707,7 @@ SmmIplSmmConfigurationEventNotify ( } =20 // - // Register the SMM Entry Point provided by the SMM Core with the SMM CO= nfiguration protocol + // Register the SMM Entry Point provided by the SMM Core with the SMM Co= nfiguration protocol // Status =3D SmmConfiguration->RegisterSmmEntry (SmmConfiguration, gSmmCor= ePrivate->SmmEntryPoint); ASSERT_EFI_ERROR (Status); @@ -964,7 +964,7 @@ ExecuteSmmCoreFromSmram ( } =20 // - // Initilize ImageContext + // Initialize ImageContext // ImageContext.Handle =3D SourceBuffer; ImageContext.ImageRead =3D PeCoffLoaderImageReadFromMemory; @@ -1082,7 +1082,7 @@ ExecuteSmmCoreFromSmram ( } =20 // - // Always free memory allocted by GetFileBufferByFilePath () + // Always free memory allocated by GetFileBufferByFilePath () // FreePool (SourceBuffer); =20 @@ -1763,7 +1763,7 @@ SmmIplEntry ( ASSERT_EFI_ERROR (Status); =20 // - // Create the set of protocol and event notififcations that the SMM IPL = requires + // Create the set of protocol and event notifications that the SMM IPL r= equires // for (Index =3D 0; mSmmIplEvents[Index].NotifyFunction !=3D NULL; Index++= ) { if (mSmmIplEvents[Index].Protocol) { diff --git a/MdeModulePkg/Core/PiSmmCore/Smi.c b/MdeModulePkg/Core/PiSmmCor= e/Smi.c index 488af6754faf..aeefb392f7af 100644 --- a/MdeModulePkg/Core/PiSmmCore/Smi.c +++ b/MdeModulePkg/Core/PiSmmCore/Smi.c @@ -196,7 +196,7 @@ SmiManage ( /** Registers a handler to execute within SMM. =20 - @param Handler Handler service funtion pointer. + @param Handler Handler service function pointer. @param HandlerType Points to the handler type or NULL for root SMI h= andlers. @param DispatchHandle On return, contains a unique handle which can be = used to later unregister the handler function. =20 diff --git a/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c b/MdeModulePk= g/Core/PiSmmCore/SmramProfileRecord.c index 49c4a3758fdd..1b302c810cc9 100644 --- a/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c +++ b/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c @@ -78,7 +78,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_DEVICE_PATH_PROTOCOL *m= SmramProfileDriverPath; GLOBAL_REMOVE_IF_UNREFERENCED UINTN mSmramProfileDriver= PathSize; =20 /** - Dump SMRAM infromation. + Dump SMRAM information. =20 **/ VOID @@ -2797,7 +2797,7 @@ DumpSmramProfile ( } =20 /** - Dump SMRAM infromation. + Dump SMRAM information. =20 **/ VOID --=20 2.21.0