TianoCore EDK2 master
|
#include <PiMm.h>
#include <Protocol/LoadedImage.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MmServicesTableLib.h>
#include <Library/StandaloneMmDriverEntryPoint.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | _DriverUnloadHandler (EFI_HANDLE ImageHandle) |
EFI_STATUS EFIAPI | _ModuleEntryPoint (IN EFI_HANDLE ImageHandle, IN IN EFI_MM_SYSTEM_TABLE *MmSystemTable) |
Entry point to a Standalone MM driver.
Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.
Copyright (c) 2016 - 2018, ARM Ltd. All rights reserved.
Copyright (c) 2018, Linaro, Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file StandaloneMmDriverEntryPoint.c.
EFI_STATUS EFIAPI _DriverUnloadHandler | ( | EFI_HANDLE | ImageHandle | ) |
Unloads an image from memory.
This function is a callback that a driver registers to do cleanup when the UnloadImage boot service function is called.
ImageHandle | The handle to the image to unload. |
Definition at line 33 of file StandaloneMmDriverEntryPoint.c.
EFI_STATUS EFIAPI _ModuleEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN IN EFI_MM_SYSTEM_TABLE * | MmSystemTable | ||
) |
The entry point of PE/COFF Image for a Standalone MM Driver.
This function is the entry point for a Standalone MM Driver. This function must call ProcessLibraryConstructorList() and ProcessModuleEntryPointList(). If the return status from ProcessModuleEntryPointList() is an error status, then ProcessLibraryDestructorList() must be called. The return value from ProcessModuleEntryPointList() is returned. If _gMmRevision is not zero and SystemTable->Hdr.Revision is less than _gMmRevision, then return EFI_INCOMPATIBLE_VERSION.
ImageHandle | The image handle of the Standalone MM Driver. |
MmSystemTable | A pointer to the MM System Table. |
EFI_SUCCESS | The Standalone MM Driver exited normally. |
EFI_INCOMPATIBLE_VERSION | _gMmRevision is greater than MmSystemTable->Hdr.Revision. |
Other | Return value from ProcessModuleEntryPointList(). |
Definition at line 83 of file StandaloneMmDriverEntryPoint.c.