TianoCore EDK2 master
Loading...
Searching...
No Matches
PeiCpuCacheInfoLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS CpuCacheInfoGetMpServices (OUT MP_SERVICES *MpServices)
 
VOID CpuCacheInfoStartupAllCPUs (IN MP_SERVICES MpServices, IN EFI_AP_PROCEDURE Procedure, IN VOID *ProcedureArgument)
 
VOID CpuCacheInfoGetProcessorInfo (IN MP_SERVICES MpServices, IN UINTN ProcessorNum, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfo)
 
UINT32 CpuCacheInfoWhoAmI (IN MP_SERVICES MpServices)
 
UINT32 CpuCacheInfoGetNumberOfProcessors (IN MP_SERVICES MpServices)
 

Detailed Description

Provides cache info for each package, core type, cache level and cache type.

Copyright (c) 2020 Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PeiCpuCacheInfoLib.c.

Function Documentation

◆ CpuCacheInfoGetMpServices()

EFI_STATUS CpuCacheInfoGetMpServices ( OUT MP_SERVICES MpServices)

Get EDKII_PEI_MP_SERVICES2_PPI pointer.

Parameters
[out]MpServicesA pointer to the buffer where EDKII_PEI_MP_SERVICES2_PPI is stored
Return values
EFI_SUCCESSEDKII_PEI_MP_SERVICES2_PPI interface is returned
EFI_NOT_FOUNDEDKII_PEI_MP_SERVICES2_PPI interface is not found

Definition at line 26 of file PeiCpuCacheInfoLib.c.

◆ CpuCacheInfoGetNumberOfProcessors()

UINT32 CpuCacheInfoGetNumberOfProcessors ( IN MP_SERVICES  MpServices)

Get the total number of logical processors in the platform.

Parameters
[in]MpServicesMP_SERVICES structure.
Return values
Returnthe total number of logical processors.

Definition at line 107 of file PeiCpuCacheInfoLib.c.

◆ CpuCacheInfoGetProcessorInfo()

VOID CpuCacheInfoGetProcessorInfo ( IN MP_SERVICES  MpServices,
IN UINTN  ProcessorNum,
OUT EFI_PROCESSOR_INFORMATION ProcessorInfo 
)

Get detailed information of the requested logical processor.

Parameters
[in]MpServicesMP_SERVICES structure.
[in]ProcessorNumThe requested logical processor number.
[out]ProcessorInfoA pointer to the buffer where the processor information is stored

Definition at line 66 of file PeiCpuCacheInfoLib.c.

◆ CpuCacheInfoStartupAllCPUs()

VOID CpuCacheInfoStartupAllCPUs ( IN MP_SERVICES  MpServices,
IN EFI_AP_PROCEDURE  Procedure,
IN VOID *  ProcedureArgument 
)

Activate all of the logical processors.

Parameters
[in]MpServicesMP_SERVICES structure.
[in]ProcedureA pointer to the function to be run on enabled logical processors.
[in]ProcedureArgumentThe parameter passed into Procedure for all enabled logical processors.

Definition at line 46 of file PeiCpuCacheInfoLib.c.

◆ CpuCacheInfoWhoAmI()

UINT32 CpuCacheInfoWhoAmI ( IN MP_SERVICES  MpServices)

Get the logical processor number.

Parameters
[in]MpServicesMP_SERVICES structure.
Return values
Returnthe logical processor number.

Definition at line 86 of file PeiCpuCacheInfoLib.c.