MdePkg: Support standalone MM Driver Unload capability
https://bugzilla.tianocore.org/show_bug.cgi?id=3240 This patch is to support standalone MM Driver Unload capability by providing _DriverUnloadHandler() function. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Signed-off-by: Jiaxin Wu <Jiaxin.wu@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
@@ -18,6 +18,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
extern CONST UINT32 _gMmRevision;
|
||||
|
||||
///
|
||||
/// Declare the number of unload handler in the image.
|
||||
///
|
||||
extern CONST UINT8 _gDriverUnloadImageCount;
|
||||
|
||||
/**
|
||||
The entry point of PE/COFF Image for a Standalone MM Driver.
|
||||
|
||||
@@ -122,4 +127,24 @@ ProcessModuleEntryPointList (
|
||||
IN EFI_MM_SYSTEM_TABLE *MmSystemTable
|
||||
);
|
||||
|
||||
/**
|
||||
Autogenerated function that calls a set of module unload handlers.
|
||||
|
||||
This function must be called from the unload handler registered by _ModuleEntryPoint().
|
||||
This function calls the set of module unload handlers.
|
||||
This function is autogenerated by build tools and those build tools are responsible
|
||||
for collecting the module unload handlers and calling them in a specified order.
|
||||
|
||||
@param ImageHandle The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.
|
||||
|
||||
@retval EFI_SUCCESS The unload handlers executed normally.
|
||||
@retval !EFI_SUCCESS The unload handlers failed to execute normally.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
ProcessModuleUnloadList (
|
||||
IN EFI_HANDLE ImageHandle
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user