Files
Abner Chang 40f4c70280 RiscV/ProcessorPkg: Create read mtime CSR library instances
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>
2021-11-10 14:57:43 +08:00

35 lines
839 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 = EmulatedMachineModeTimerLib
FILE_GUID = 81B82615-D85C-4377-8BFF-7442322E2835
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]
EmulatedMachineModeTimerLib.S
[Packages]
MdePkg/MdePkg.dec
Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec