You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
Create library instances of reading Machine mode timer. - MacineModeTimerLib is used to read mtime CSR through platfrom library. - EmulatedMacineModeTimerLib is used to read mtime CSR through shadow CSR. Cc: Sunil V L <sunilvl@ventanamicro.com> Cc: Daniel Schaefer <daniel.schaefer@hpe.com> Signed-off-by: Abner Chang <abner.chang@hpe.com> Reviewed-by: Daniel Schaefer <daniel.schaefer@hpe.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
39 lines
883 B
INI
39 lines
883 B
INI
## @file
|
|
# Library to read Machine Mode Timer.
|
|
#
|
|
# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x0001001b
|
|
BASE_NAME = MachineModeTimerLib
|
|
FILE_GUID = 6390D8AA-E0E6-4625-A515-9BB2DC7BBCAB
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = MachineModeTimerLib
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = RISCV64
|
|
#
|
|
|
|
[Sources]
|
|
|
|
[Sources.RISCV64]
|
|
MachineModeTimerLib.S
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec
|
|
|
|
[LibraryClasses]
|
|
RiscVCpuLib
|
|
RiscVPlatformTimerLib
|
|
|
|
|
|
|