UefiCpuPkg: Adding a new TSC library by using CPUID(0x15) TSC leaf
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1909 Cc: Ray Ni <ray.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Amy Chan <amy.chan@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Signed-off-by: Donald Kuo <donald.kuo@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
37
UefiCpuPkg/Library/CpuTimerLib/DxeCpuTimerLib.inf
Normal file
37
UefiCpuPkg/Library/CpuTimerLib/DxeCpuTimerLib.inf
Normal file
@@ -0,0 +1,37 @@
|
||||
## @file
|
||||
# DXE CPU Timer Library
|
||||
#
|
||||
# Provides basic timer support using CPUID Leaf 0x15 XTAL frequency. The performance
|
||||
# counter features are provided by the processors time stamp counter.
|
||||
#
|
||||
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = DxeCpuTimerLib
|
||||
FILE_GUID = F22CC0DA-E7DB-4E4D-ABE2-A608188233A2
|
||||
MODULE_TYPE = DXE_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = TimerLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE
|
||||
CONSTRUCTOR = DxeCpuTimerLibConstructor
|
||||
MODULE_UNI_FILE = DxeCpuTimerLib.uni
|
||||
|
||||
[Sources]
|
||||
CpuTimerLib.c
|
||||
DxeCpuTimerLib.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
UefiCpuPkg/UefiCpuPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
PcdLib
|
||||
DebugLib
|
||||
HobLib
|
||||
|
||||
[Pcd]
|
||||
gUefiCpuPkgTokenSpaceGuid.PcdCpuCoreCrystalClockFrequency ## CONSUMES
|
Reference in New Issue
Block a user