TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/HobLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/PeiServicesTablePointerLib.h>
#include <Ppi/MpServices2.h>
#include "RegisterCpuFeatures.h"
Go to the source code of this file.
Macros | |
#define | REGISTER_CPU_FEATURES_GUID |
Functions | |
CPU_FEATURES_DATA * | GetCpuFeaturesData (VOID) |
MP_SERVICES | GetMpService (VOID) |
UINTN | GetProcessorIndex (IN CPU_FEATURES_DATA *CpuFeaturesData) |
EFI_STATUS | GetProcessorInformation (IN UINTN ProcessorNumber, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer) |
VOID | StartupAllAPsWorker (IN EFI_AP_PROCEDURE Procedure, IN EFI_EVENT MpEvent) |
VOID | StartupAllCPUsWorker (IN EFI_AP_PROCEDURE Procedure) |
VOID | SwitchNewBsp (IN UINTN ProcessorNumber) |
VOID | GetNumberOfProcessor (OUT UINTN *NumberOfCpus, OUT UINTN *NumberOfEnabledProcessors) |
VOID EFIAPI | CpuFeaturesInitialize (VOID) |
Variables | |
EFI_GUID | mRegisterCpuFeaturesHobGuid = REGISTER_CPU_FEATURES_GUID |
CPU Register Table Library functions.
Copyright (c) 2016 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PeiRegisterCpuFeaturesLib.c.
#define REGISTER_CPU_FEATURES_GUID |
Definition at line 18 of file PeiRegisterCpuFeaturesLib.c.
VOID EFIAPI CpuFeaturesInitialize | ( | VOID | ) |
Performs CPU features Initialization.
This service will invoke MP service to perform CPU features initialization on BSP/APs per user configuration.
Definition at line 285 of file PeiRegisterCpuFeaturesLib.c.
CPU_FEATURES_DATA * GetCpuFeaturesData | ( | VOID | ) |
Worker function to get CPU_FEATURES_DATA pointer.
Definition at line 31 of file PeiRegisterCpuFeaturesLib.c.
MP_SERVICES GetMpService | ( | VOID | ) |
Worker function to get MP PPI service pointer.
Definition at line 69 of file PeiRegisterCpuFeaturesLib.c.
Worker function to retrieve the number of logical processor in the platform.
[out] | NumberOfCpus | Pointer to the total number of logical processors in the system, including the BSP and disabled APs. |
[out] | NumberOfEnabledProcessors | Pointer to the number of enabled logical processors that exist in system, including the BSP. |
Definition at line 252 of file PeiRegisterCpuFeaturesLib.c.
UINTN GetProcessorIndex | ( | IN CPU_FEATURES_DATA * | CpuFeaturesData | ) |
Worker function to return processor index.
CpuFeaturesData | Cpu Feature Data structure. |
Definition at line 97 of file PeiRegisterCpuFeaturesLib.c.
EFI_STATUS GetProcessorInformation | ( | IN UINTN | ProcessorNumber, |
OUT EFI_PROCESSOR_INFORMATION * | ProcessorInfoBuffer | ||
) |
Worker function to MP-related information on the requested processor at the instant this call is made.
[in] | ProcessorNumber | The handle number of processor. |
[out] | ProcessorInfoBuffer | A pointer to the buffer where information for the requested processor is deposited. |
Definition at line 128 of file PeiRegisterCpuFeaturesLib.c.
VOID StartupAllAPsWorker | ( | IN EFI_AP_PROCEDURE | Procedure, |
IN EFI_EVENT | MpEvent | ||
) |
Worker function to execute a caller provided function on all enabled APs.
[in] | Procedure | A pointer to the function to be run on enabled APs of the system. |
[in] | MpEvent | The Event used to sync the result. |
Definition at line 157 of file PeiRegisterCpuFeaturesLib.c.
VOID StartupAllCPUsWorker | ( | IN EFI_AP_PROCEDURE | Procedure | ) |
Worker function to execute a caller provided function on all enabled CPUs.
[in] | Procedure | A pointer to the function to be run on enabled CPUs of the system. |
Definition at line 190 of file PeiRegisterCpuFeaturesLib.c.
Worker function to switch the requested AP to be the BSP from that point onward.
[in] | ProcessorNumber | The handle number of AP that is to become the new BSP. |
Definition at line 219 of file PeiRegisterCpuFeaturesLib.c.
EFI_GUID mRegisterCpuFeaturesHobGuid = REGISTER_CPU_FEATURES_GUID |
Definition at line 23 of file PeiRegisterCpuFeaturesLib.c.