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
1021 B
INI
44 lines
1021 B
INI
## @file
|
|
# CPU Cache Info Library instance for DXE driver.
|
|
#
|
|
# 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 = DxeCpuCacheInfoLib
|
|
FILE_GUID = B25C288F-C309-41F1-8325-37E64DC5EA3D
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = CpuCacheInfoLib|DXE_DRIVER UEFI_APPLICATION
|
|
MODULE_UNI_FILE = CpuCacheInfoLib.uni
|
|
|
|
[Sources]
|
|
InternalCpuCacheInfoLib.h
|
|
CpuCacheInfoLib.c
|
|
DxeCpuCacheInfoLib.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
BaseMemoryLib
|
|
MemoryAllocationLib
|
|
UefiBootServicesTableLib
|
|
|
|
[Protocols]
|
|
gEfiMpServiceProtocolGuid
|
|
|
|
[Pcd]
|
|
|
|
[Depex]
|
|
TRUE
|