REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3105 This new library uses a platform agnostic algorithm to get CPU cache information. It provides user with an API(GetCpuCacheInfo) to get detailed CPU cache information by each package, each core type included in this package, and each cache level & type. This library can be used by code that produces SMBIOS_TABLE_TYPE7 SMBIOS table. Signed-off-by: Jason Lou <yun.lou@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
44 lines
991 B
INI
44 lines
991 B
INI
## @file
|
|
# CPU Cache Info Library instance for PEI module.
|
|
#
|
|
# Provides cache info for each package, core type, cache level and cache type.
|
|
#
|
|
# Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = PeiCpuCacheInfoLib
|
|
FILE_GUID = CFEE2DBE-53B2-4916-84CA-0BA83C3DDA6E
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = CpuCacheInfoLib|PEIM
|
|
MODULE_UNI_FILE = CpuCacheInfoLib.uni
|
|
|
|
[Sources]
|
|
InternalCpuCacheInfoLib.h
|
|
CpuCacheInfoLib.c
|
|
PeiCpuCacheInfoLib.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
BaseMemoryLib
|
|
MemoryAllocationLib
|
|
PeiServicesTablePointerLib
|
|
|
|
[Ppis]
|
|
gEdkiiPeiMpServices2PpiGuid
|
|
|
|
[Pcd]
|
|
|
|
[Depex]
|
|
TRUE
|