TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmDriverEntryPoint.c File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ _DriverUnloadHandler()

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.

Parameters
ImageHandleThe handle to the image to unload.
Returns
Status returned by all unload().

Definition at line 33 of file StandaloneMmDriverEntryPoint.c.

◆ _ModuleEntryPoint()

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.

Parameters
ImageHandleThe image handle of the Standalone MM Driver.
MmSystemTableA pointer to the MM System Table.
Return values
EFI_SUCCESSThe Standalone MM Driver exited normally.
EFI_INCOMPATIBLE_VERSION_gMmRevision is greater than MmSystemTable->Hdr.Revision.
OtherReturn value from ProcessModuleEntryPointList().

Definition at line 83 of file StandaloneMmDriverEntryPoint.c.