TianoCore EDK2 master
|
#include <Base.h>
#include <Pi/PiMmCis.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Protocol/DebugSupport.h>
#include <Guid/ZeroGuid.h>
#include <Guid/MmramMemoryReserve.h>
#include <StandaloneMmCpu.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | MmFoundationEntryRegister (IN CONST EFI_MM_CONFIGURATION_PROTOCOL *This, IN EFI_MM_ENTRY_POINT MmEntryPoint) |
STATIC EFI_STATUS | CheckBufferAddr (IN UINTN BufferAddr) |
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) |
Copyright (c) 2016 HP Development Company, L.P. Copyright (c) 2016 - 2021, Arm Limited. All rights reserved. Copyright (c) 2021, Linaro Limited Copyright (c) 2023, Ventana Micro System Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EventHandle.c.
STATIC EFI_STATUS CheckBufferAddr | ( | IN UINTN | BufferAddr | ) |
Perform bounds check on the common buffer.
[in] | BufferAddr | Address of the common buffer. |
EFI_SUCCESS | Success. |
EFI_ACCESS_DENIED | Access not permitted. |
Definition at line 69 of file EventHandle.c.
EFI_STATUS EFIAPI MmFoundationEntryRegister | ( | IN CONST EFI_MM_CONFIGURATION_PROTOCOL * | This, |
IN EFI_MM_ENTRY_POINT | MmEntryPoint | ||
) |
Registers the MM foundation entry point.
[in] | This | Pointer to the MM Configuration protocol. |
[in] | MmEntryPoint | Function pointer to the MM Entry point. |
EFI_SUCCESS | Success. |
Definition at line 213 of file EventHandle.c.
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.
DispatchHandle | The unique handle assigned to this handler by MmiHandlerRegister(). |
Context | Points to an optional handler context which was specified when the handler was registered. |
CommBuffer | A pointer to a collection of data in memory that will be conveyed from a non-MM environment into an MM environment. |
CommBufferSize | The size of the CommBuffer. |
Definition at line 241 of file EventHandle.c.
EFI_STATUS PiMmStandaloneMmCpuDriverEntry | ( | IN UINTN | EventId, |
IN UINTN | CpuNumber, | ||
IN UINTN | NsCommBufferAddr | ||
) |
The PI Standalone MM entry point for the CPU driver.
[in] | EventId | The event Id. |
[in] | CpuNumber | The CPU number. |
[in] | NsCommBufferAddr | Address of the NS common buffer. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
EFI_ACCESS_DENIED | Access not permitted. |
EFI_OUT_OF_RESOURCES | Out of resources. |
EFI_UNSUPPORTED | Operation not supported. |
Definition at line 120 of file EventHandle.c.
EFI_MM_CONFIGURATION_PROTOCOL mMmConfig |
Definition at line 52 of file EventHandle.c.
STATIC EFI_MM_ENTRY_POINT mMmEntryPoint = NULL |
Definition at line 57 of file EventHandle.c.
MP_INFORMATION_HOB_DATA* mMpInformationHobData |
Definition at line 50 of file EventHandle.c.
EFI_MMRAM_DESCRIPTOR mNsCommBuffer |
Definition at line 47 of file EventHandle.c.
EFI_MMRAM_DESCRIPTOR mSCommBuffer |
Definition at line 48 of file EventHandle.c.
EFI_MM_COMMUNICATE_HEADER** PerCpuGuidedEventContext = NULL |
Definition at line 44 of file EventHandle.c.