TianoCore EDK2 master
|
#include "PiSmmCpuCommon.h"
Go to the source code of this file.
Functions | |
BOOLEAN | IsSmmProfileEnabled (VOID) |
VOID | PerformRemainingTasks (VOID) |
VOID | GetSmiCommandPort (VOID) |
VOID | GetSmmCpuSyncConfigData (IN OUT BOOLEAN *RelaxedMode, OPTIONAL IN OUT UINT64 *SyncTimeout, OPTIONAL IN OUT UINT64 *SyncTimeout2 OPTIONAL) |
VOID | GetAcpiS3EnableFlag (VOID) |
UINTN | GetSupportedMaxLogicalProcessorNumber (VOID) |
EFI_PROCESSOR_INFORMATION * | GetMpInformationFromMpServices (OUT UINTN *NumberOfCpus, OUT UINTN *MaxNumberOfCpus) |
EFI_STATUS EFIAPI | PiCpuStandaloneMmEntry (IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable) |
Variables | |
const BOOLEAN | mIsStandaloneMm = TRUE |
BOOLEAN | mRemainingTasksDone = FALSE |
Agent Module to load other modules to deploy MM Entry Vector for X86 CPU.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PiSmmCpuStandaloneMm.c.
VOID GetAcpiS3EnableFlag | ( | VOID | ) |
Get ACPI S3 enable flag.
Definition at line 158 of file PiSmmCpuStandaloneMm.c.
EFI_PROCESSOR_INFORMATION * GetMpInformationFromMpServices | ( | OUT UINTN * | NumberOfCpus, |
OUT UINTN * | MaxNumberOfCpus | ||
) |
Extract NumberOfCpus, MaxNumberOfCpus and EFI_PROCESSOR_INFORMATION.
[out] | NumberOfCpus | Pointer to NumberOfCpus. |
[out] | MaxNumberOfCpus | Pointer to MaxNumberOfCpus. |
ProcessorInfo | Pointer to EFI_PROCESSOR_INFORMATION buffer. |
Get the MP Services Protocol
Get the number of processors
Allocate buffer for processor information
Get processor information
Definition at line 206 of file PiSmmCpuStandaloneMm.c.
VOID GetSmiCommandPort | ( | VOID | ) |
To get system port address of the SMI Command Port.
Definition at line 100 of file PiSmmCpuStandaloneMm.c.
VOID GetSmmCpuSyncConfigData | ( | IN OUT BOOLEAN * | RelaxedMode, |
OPTIONAL IN OUT UINT64 * | SyncTimeout, | ||
OPTIONAL IN OUT UINT64 *SyncTimeout2 | OPTIONAL | ||
) |
Get SmmCpuSyncConfig data: RelaxedMode, SyncTimeout, SyncTimeout2.
[in,out] | RelaxedMode | It indicates if Relaxed CPU synchronization method or traditional CPU synchronization method is used when processing an SMI. |
[in,out] | SyncTimeout | It indicates the 1st BSP/AP synchronization timeout value in SMM. |
[in,out] | SyncTimeout2 | It indicates the 2nd BSP/AP synchronization timeout value in SMM. |
Definition at line 118 of file PiSmmCpuStandaloneMm.c.
UINTN GetSupportedMaxLogicalProcessorNumber | ( | VOID | ) |
Get the maximum number of logical processors supported by the system.
The | maximum number of logical processors supported by the system is indicated by the return value. |
Definition at line 188 of file PiSmmCpuStandaloneMm.c.
BOOLEAN IsSmmProfileEnabled | ( | VOID | ) |
Check SmmProfile is enabled or not.
Definition at line 31 of file PiSmmCpuStandaloneMm.c.
VOID PerformRemainingTasks | ( | VOID | ) |
Perform the remaining tasks.
Definition at line 50 of file PiSmmCpuStandaloneMm.c.
EFI_STATUS EFIAPI PiCpuStandaloneMmEntry | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_MM_SYSTEM_TABLE * | SystemTable | ||
) |
The module Entry Point of the CPU StandaloneMm driver.
ImageHandle | The firmware allocated handle for the EFI image. |
SystemTable | A pointer to the MM System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
Other | Some error occurs when executing this entry point. |
Definition at line 228 of file PiSmmCpuStandaloneMm.c.
const BOOLEAN mIsStandaloneMm = TRUE |
Definition at line 16 of file PiSmmCpuStandaloneMm.c.
BOOLEAN mRemainingTasksDone = FALSE |
Definition at line 21 of file PiSmmCpuStandaloneMm.c.