summaryrefslogtreecommitdiffstats
path: root/StandaloneMmPkg/Core/Dispatcher.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-03-04 18:19:31 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-03-11 12:51:12 +0100
commit094c0bc7d7a5d0d878d44706cfcc2d7ef5418ea8 (patch)
tree3c567a5be7b3be61bfb92e5965ae4131f41dcef4 /StandaloneMmPkg/Core/Dispatcher.c
parent84249babd7033dc65976b763419074e89d88e170 (diff)
downloadedk2-094c0bc7d7a5d0d878d44706cfcc2d7ef5418ea8.tar.gz
edk2-094c0bc7d7a5d0d878d44706cfcc2d7ef5418ea8.tar.bz2
edk2-094c0bc7d7a5d0d878d44706cfcc2d7ef5418ea8.zip
StandaloneMmPkg/Core: drop support for dispatching FVs into MM
Remove the support that permits calls into the MM context to dispatch firmware volumes that are not part of the initial standalone MM firmware volume. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: Achin Gupta <achin.gupta@arm.com>
Diffstat (limited to 'StandaloneMmPkg/Core/Dispatcher.c')
-rw-r--r--StandaloneMmPkg/Core/Dispatcher.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/StandaloneMmPkg/Core/Dispatcher.c b/StandaloneMmPkg/Core/Dispatcher.c
index bede4832cf..4b2f38f700 100644
--- a/StandaloneMmPkg/Core/Dispatcher.c
+++ b/StandaloneMmPkg/Core/Dispatcher.c
@@ -884,52 +884,6 @@ MmAddToDriverList (
}
/**
- This function is the main entry point for an MM handler dispatch
- or communicate-based callback.
-
- @param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
- @param Context Points to an optional handler context which was specified when the handler was registered.
- @param CommBuffer A pointer to a collection of data in memory that will
- be conveyed from a non-MM environment into an MM environment.
- @param CommBufferSize The size of the CommBuffer.
-
- @return Status Code
-
-**/
-EFI_STATUS
-EFIAPI
-MmFvDispatchHandler (
- IN EFI_HANDLE DispatchHandle,
- IN CONST VOID *Context, OPTIONAL
- IN OUT VOID *CommBuffer, OPTIONAL
- IN OUT UINTN *CommBufferSize OPTIONAL
- )
-{
- EFI_STATUS Status;
- EFI_MM_COMMUNICATE_FV_DISPATCH_DATA *CommunicationFvDispatchData;
- EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
-
- DEBUG ((DEBUG_INFO, "MmFvDispatchHandler\n"));
-
- CommunicationFvDispatchData = CommBuffer;
-
- DEBUG ((DEBUG_INFO, " Dispatch - 0x%016lx - 0x%016lx\n", CommunicationFvDispatchData->Address,
- CommunicationFvDispatchData->Size));
-
- FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)(UINTN)CommunicationFvDispatchData->Address;
-
- MmCoreFfsFindMmDriver (FwVolHeader);
-
- //
- // Execute the MM Dispatcher on any newly discovered FVs and previously
- // discovered MM drivers that have been discovered but not dispatched.
- //
- Status = MmDispatcher ();
-
- return Status;
-}
-
-/**
Traverse the discovered list for any drivers that were discovered but not loaded
because the dependency experessions evaluated to false.