StandaloneMmPkg: Fix spell check reported errors
Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150) Fix the spelling mistakes reported by the spell check utility that is run as part of the Core CI. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
55ec21db57
commit
da29388b53
@@ -3,10 +3,10 @@
|
||||
|
||||
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
|
||||
if a driver can be scheduled for execution. The criteria for
|
||||
schedulability is that the dependency expression is satisfied.
|
||||
scheduling is that the dependency expression is satisfied.
|
||||
|
||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@@ -193,7 +193,7 @@ MmIsSchedulable (
|
||||
if (DriverEntry->Depex == NULL) {
|
||||
//
|
||||
// A NULL Depex means that the MM driver is not built correctly.
|
||||
// All MM drivers must have a valid depex expressiion.
|
||||
// All MM drivers must have a valid depex expression.
|
||||
//
|
||||
DEBUG ((DEBUG_DISPATCH, " RESULT = FALSE (Depex is empty)\n"));
|
||||
ASSERT (FALSE);
|
||||
|
@@ -15,9 +15,10 @@
|
||||
|
||||
Step #3 - Adding to the mScheduledQueue requires that you process Before
|
||||
and After dependencies. This is done recursively as the call to add
|
||||
to the mScheduledQueue checks for Before and recursively adds
|
||||
all Befores. It then addes the item that was passed in and then
|
||||
processess the After dependecies by recursively calling the routine.
|
||||
to the mScheduledQueue checks for Before Depexes and recursively
|
||||
adds all Before Depexes. It then adds the item that was passed in
|
||||
and then processess the After dependencies by recursively calling
|
||||
the routine.
|
||||
|
||||
Dispatcher Rules:
|
||||
The rules for the dispatcher are similar to the DXE dispatcher.
|
||||
@@ -29,7 +30,7 @@
|
||||
|
||||
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
|
||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
@@ -60,8 +61,8 @@ MmCoreFfsFindMmDriver (
|
||||
/**
|
||||
Insert InsertedDriverEntry onto the mScheduledQueue. To do this you
|
||||
must add any driver with a before dependency on InsertedDriverEntry first.
|
||||
You do this by recursively calling this routine. After all the Befores are
|
||||
processed you can add InsertedDriverEntry to the mScheduledQueue.
|
||||
You do this by recursively calling this routine. After all the Before Depexes
|
||||
are processed you can add InsertedDriverEntry to the mScheduledQueue.
|
||||
Then you can add any driver with an After dependency on InsertedDriverEntry
|
||||
by recursively calling this routine.
|
||||
|
||||
@@ -92,7 +93,7 @@ LIST_ENTRY mScheduledQueue = INITIALIZE_LIST_HEAD_VARIABLE (mScheduledQueue);
|
||||
LIST_ENTRY mFwVolList = INITIALIZE_LIST_HEAD_VARIABLE (mFwVolList);
|
||||
|
||||
//
|
||||
// Flag for the MM Dispacher. TRUE if dispatcher is execuing.
|
||||
// Flag for the MM Dispacher. TRUE if dispatcher is executing.
|
||||
//
|
||||
BOOLEAN gDispatcherRunning = FALSE;
|
||||
|
||||
@@ -110,7 +111,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED UINT64 *mMmCodeMemoryRangeUsageB
|
||||
|
||||
/**
|
||||
To check memory usage bit map array to figure out if the memory range in which the image will be loaded
|
||||
is available or not. If memory range is avaliable, the function will mark the correponding bits to 1
|
||||
is available or not. If memory range is avaliable, the function will mark the corresponding bits to 1
|
||||
which indicates the memory range is used. The function is only invoked when load modules at fixed address
|
||||
feature is enabled.
|
||||
|
||||
@@ -163,7 +164,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||
}
|
||||
|
||||
//
|
||||
// Test if the memory is avalaible or not.
|
||||
// Test if the memory is available or not.
|
||||
//
|
||||
BaseOffsetPageNumber = (UINTN)EFI_SIZE_TO_PAGES ((UINT32)(ImageBase - MmCodeBase));
|
||||
TopOffsetPageNumber = (UINTN)EFI_SIZE_TO_PAGES ((UINT32)(ImageBase + ImageSize - MmCodeBase));
|
||||
@@ -328,7 +329,7 @@ MmLoadImage (
|
||||
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)DstBuffer;
|
||||
|
||||
//
|
||||
// Align buffer on section boundry
|
||||
// Align buffer on section boundary
|
||||
//
|
||||
ImageContext.ImageAddress += ImageContext.SectionAlignment - 1;
|
||||
ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1));
|
||||
@@ -604,7 +605,7 @@ MmDispatcher (
|
||||
|
||||
//
|
||||
// Load the MM Driver image into memory. If the Driver was transitioned from
|
||||
// Untrused to Scheduled it would have already been loaded so we may need to
|
||||
// Untrusted to Scheduled it would have already been loaded so we may need to
|
||||
// skip the LoadImage
|
||||
//
|
||||
if (DriverEntry->ImageHandle == NULL) {
|
||||
@@ -703,8 +704,8 @@ MmDispatcher (
|
||||
/**
|
||||
Insert InsertedDriverEntry onto the mScheduledQueue. To do this you
|
||||
must add any driver with a before dependency on InsertedDriverEntry first.
|
||||
You do this by recursively calling this routine. After all the Befores are
|
||||
processed you can add InsertedDriverEntry to the mScheduledQueue.
|
||||
You do this by recursively calling this routine. After all the Before Depexes
|
||||
are processed you can add InsertedDriverEntry to the mScheduledQueue.
|
||||
Then you can add any driver with an After dependency on InsertedDriverEntry
|
||||
by recursively calling this routine.
|
||||
|
||||
@@ -828,9 +829,9 @@ FvIsBeingProcessed (
|
||||
|
||||
/**
|
||||
Add an entry to the mDiscoveredList. Allocate memory to store the DriverEntry,
|
||||
and initilize any state variables. Read the Depex from the FV and store it
|
||||
and initialise 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 represent the
|
||||
The Discovered list is never freed and contains booleans that represent the
|
||||
other possible MM driver states.
|
||||
|
||||
@param Fv Fv protocol, needed to read Depex info out of
|
||||
@@ -885,7 +886,7 @@ MmAddToDriverList (
|
||||
|
||||
/**
|
||||
Traverse the discovered list for any drivers that were discovered but not loaded
|
||||
because the dependency experessions evaluated to false.
|
||||
because the dependency expressions evaluated to false.
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
@@ -2,7 +2,7 @@
|
||||
Locate handle functions
|
||||
|
||||
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@@ -173,8 +173,8 @@ MmGetNextLocateByProtocol (
|
||||
|
||||
/**
|
||||
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 Interface
|
||||
Registration is passed in return a Protocol Instance that was just add
|
||||
to the system. If Registration is NULL return the first Protocol Interface
|
||||
you find.
|
||||
|
||||
@param Protocol The protocol to search for
|
||||
|
@@ -2,7 +2,7 @@
|
||||
MMI management.
|
||||
|
||||
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@@ -220,7 +220,7 @@ MmiManage (
|
||||
/**
|
||||
Registers a handler to execute within MM.
|
||||
|
||||
@param Handler Handler service funtion pointer.
|
||||
@param Handler Handler service function pointer.
|
||||
@param HandlerType Points to the handler type or NULL for root MMI handlers.
|
||||
@param DispatchHandle On return, contains a unique handle which can be used to later unregister the handler function.
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
MM Core Main Entry Point
|
||||
|
||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@@ -590,9 +590,9 @@ StandaloneMmMain (
|
||||
|
||||
//
|
||||
// No need to initialize memory service.
|
||||
// It is done in constructor of StandaloneMmCoreMemoryAllocationLib(),
|
||||
// so that the library linked with StandaloneMmCore can use AllocatePool() in constuctor.
|
||||
//
|
||||
// It is done in the constructor of StandaloneMmCoreMemoryAllocationLib(),
|
||||
// so that the library linked with StandaloneMmCore can use AllocatePool() in
|
||||
// the constructor.
|
||||
|
||||
DEBUG ((DEBUG_INFO, "MmInstallConfigurationTable For HobList\n"));
|
||||
//
|
||||
|
@@ -3,7 +3,7 @@
|
||||
internal structure and functions used by MmCore module.
|
||||
|
||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
@@ -131,7 +131,7 @@ typedef struct {
|
||||
EFI_GUID ProtocolID;
|
||||
/// All protocol interfaces
|
||||
LIST_ENTRY Protocols;
|
||||
/// Registerd notification handlers
|
||||
/// Registered notification handlers
|
||||
LIST_ENTRY Notify;
|
||||
} PROTOCOL_ENTRY;
|
||||
|
||||
@@ -516,8 +516,8 @@ MmLocateHandle (
|
||||
|
||||
/**
|
||||
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 Interface
|
||||
Registration is passed in return a Protocol Instance that was just add
|
||||
to the system. If Registration is NULL return the first Protocol Interface
|
||||
you find.
|
||||
|
||||
@param Protocol The protocol to search for
|
||||
@@ -564,7 +564,7 @@ MmiManage (
|
||||
/**
|
||||
Registers a handler to execute within MM.
|
||||
|
||||
@param Handler Handler service funtion pointer.
|
||||
@param Handler Handler service function pointer.
|
||||
@param HandlerType Points to the handler type or NULL for root MMI handlers.
|
||||
@param DispatchHandle On return, contains a unique handle which can be used to later unregister the handler function.
|
||||
|
||||
@@ -728,7 +728,7 @@ MmEfiNotAvailableYetArg5 (
|
||||
);
|
||||
|
||||
//
|
||||
//Functions used during debug buils
|
||||
//Functions used during debug builds
|
||||
//
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user