TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmCpu.h File Reference

Go to the source code of this file.

Data Structures

struct  MM_CPU_DRIVER_EP_DESCRIPTOR
 

Typedefs

typedef EFI_STATUS(* PI_MM_CPU_DRIVER_ENTRYPOINT) (IN UINTN EventId, IN UINTN CpuNumber, IN UINTN NsCommBufferAddr)
 

Functions

EFI_STATUS PiMmStandaloneMmCpuDriverEntry (IN UINTN EventId, IN UINTN CpuNumber, IN UINTN NsCommBufferAddr)
 
EFI_STATUS EFIAPI PiMmCpuTpFwRootMmiHandler (IN EFI_HANDLE DispatchHandle, IN CONST VOID *Context OPTIONAL, IN OUT VOID *CommBuffer OPTIONAL, IN OUT UINTN *CommBufferSize OPTIONAL)
 

Variables

EFI_MM_SYSTEM_TABLEmMmst
 
EFI_MM_CPU_PROTOCOL mMmCpuState
 
EFI_MM_COMMUNICATE_HEADER ** PerCpuGuidedEventContext
 
EFI_MMRAM_DESCRIPTOR mNsCommBuffer
 
EFI_MMRAM_DESCRIPTOR mSCommBuffer
 
MP_INFORMATION_HOB_DATAmMpInformationHobData
 
EFI_MM_CONFIGURATION_PROTOCOL mMmConfig
 

Detailed Description

Private header with declarations and definitions specific to the MM Standalone CPU driver

Copyright (c) 2017 - 2021, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file StandaloneMmCpu.h.

Typedef Documentation

◆ PI_MM_CPU_DRIVER_ENTRYPOINT

typedef EFI_STATUS(* PI_MM_CPU_DRIVER_ENTRYPOINT) (IN UINTN EventId, IN UINTN CpuNumber, IN UINTN NsCommBufferAddr)

Definition at line 19 of file StandaloneMmCpu.h.

Function Documentation

◆ PiMmCpuTpFwRootMmiHandler()

EFI_STATUS EFIAPI PiMmCpuTpFwRootMmiHandler ( IN EFI_HANDLE  DispatchHandle,
IN CONST VOID *Context  OPTIONAL,
IN OUT VOID *CommBuffer  OPTIONAL,
IN OUT UINTN *CommBufferSize  OPTIONAL 
)

This function is the main entry point for an MM handler dispatch or communicate-based callback.

Parameters
DispatchHandleThe unique handle assigned to this handler by MmiHandlerRegister().
ContextPoints to an optional handler context which was specified when the handler was registered.
CommBufferA pointer to a collection of data in memory that will be conveyed from a non-MM environment into an MM environment.
CommBufferSizeThe size of the CommBuffer.
Returns
Status Code

Definition at line 241 of file EventHandle.c.

◆ PiMmStandaloneMmCpuDriverEntry()

EFI_STATUS PiMmStandaloneMmCpuDriverEntry ( IN UINTN  EventId,
IN UINTN  CpuNumber,
IN UINTN  NsCommBufferAddr 
)

The PI Standalone MM entry point for the CPU driver.

Parameters
[in]EventIdThe event Id.
[in]CpuNumberThe CPU number.
[in]NsCommBufferAddrAddress of the NS common buffer.
Return values
EFI_SUCCESSSuccess.
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_ACCESS_DENIEDAccess not permitted.
EFI_OUT_OF_RESOURCESOut of resources.
EFI_UNSUPPORTEDOperation not supported.

Definition at line 120 of file EventHandle.c.

Variable Documentation

◆ mMmConfig

Definition at line 52 of file EventHandle.c.

◆ mMmst

EFI_MM_SYSTEM_TABLE* mMmst
extern

Definition at line 37 of file StandaloneMmCpu.c.

◆ mMpInformationHobData

MP_INFORMATION_HOB_DATA* mMpInformationHobData
extern

Definition at line 50 of file EventHandle.c.

◆ mNsCommBuffer

EFI_MMRAM_DESCRIPTOR mNsCommBuffer
extern

Definition at line 47 of file EventHandle.c.

◆ mSCommBuffer

EFI_MMRAM_DESCRIPTOR mSCommBuffer
extern

Definition at line 48 of file EventHandle.c.

◆ PerCpuGuidedEventContext

EFI_MM_COMMUNICATE_HEADER** PerCpuGuidedEventContext
extern

Definition at line 44 of file EventHandle.c.