TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmCpu.c File Reference
#include <Base.h>
#include <Pi/PiMmCis.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.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 GetGuidedHobData (IN VOID *HobList, IN CONST EFI_GUID *HobGuid, OUT VOID **HobData)
 
EFI_STATUS StandaloneMmCpuInitialize (IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_GUID gEfiStandaloneMmNonSecureBufferGuid
 
EFI_GUID gEfiMmCpuDriverEpDescriptorGuid
 
EFI_MM_SYSTEM_TABLEmMmst = NULL
 
STATIC EFI_HANDLE mMmCpuHandle = NULL
 

Detailed Description

Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
Copyright (c) 2016 HP Development Company, L.P. Copyright (c) 2016 - 2021, Arm Limited. All rights reserved. Copyright (c) 2023, Ventana Micro System Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file StandaloneMmCpu.c.

Function Documentation

◆ GetGuidedHobData()

EFI_STATUS GetGuidedHobData ( IN VOID *  HobList,
IN CONST EFI_GUID HobGuid,
OUT VOID **  HobData 
)

Returns the HOB data for the matching HOB GUID.

Parameters
[in]HobListPointer to the HOB list.
[in]HobGuidThe GUID for the HOB.
[out]HobDataPointer to the HOB data.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_NOT_FOUNDCould not find HOB with matching GUID.

Definition at line 55 of file StandaloneMmCpu.c.

◆ StandaloneMmCpuInitialize()

EFI_STATUS StandaloneMmCpuInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_MM_SYSTEM_TABLE SystemTable 
)

Entry point for the Standalone MM CPU driver.

Parameters
[in]ImageHandleUnused. Not actual image handle.
[in]SystemTablePointer to MM System table.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_OUT_OF_RESOURCESOut of resources.
EFI_NOT_FOUNDFailed to find the HOB for the CPU driver endpoint descriptor.

Definition at line 92 of file StandaloneMmCpu.c.

Variable Documentation

◆ mMmCpuHandle

STATIC EFI_HANDLE mMmCpuHandle = NULL

Definition at line 42 of file StandaloneMmCpu.c.

◆ mMmst

Definition at line 37 of file StandaloneMmCpu.c.