diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-07-10 19:18:11 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-07-11 07:53:18 +0300 |
commit | 13d40f21d588e17a31624ed415f114987b6bd3d0 (patch) | |
tree | e54dd0463d90fbbc28b90e56b45a01539a981115 /lib/sbi/objects.mk | |
parent | e7cc7a3ab2770b9f40569a84c417afdad59531bc (diff) | |
download | opensbi-13d40f21d588e17a31624ed415f114987b6bd3d0.tar.xz |
lib: sbi: Add PMU support
RISC-V SBI v0.3 specification defined a PMU extension to configure/start/stop
the hardware/firmware pmu events.
Implement PMU support in OpenSBI library. The implementation is agnostic of
event to counter mapping & mhpmevent value configuration. That means, it
expects platform hooks will be used to set up the mapping and provide
the mhpmevent value at runtime.
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/objects.mk')
-rw-r--r-- | lib/sbi/objects.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbi/objects.mk b/lib/sbi/objects.mk index 6f2c06f..d9068b7 100644 --- a/lib/sbi/objects.mk +++ b/lib/sbi/objects.mk @@ -33,6 +33,7 @@ libsbi-objs-y += sbi_init.o libsbi-objs-y += sbi_ipi.o libsbi-objs-y += sbi_misaligned_ldst.o libsbi-objs-y += sbi_platform.o +libsbi-objs-y += sbi_pmu.o libsbi-objs-y += sbi_scratch.o libsbi-objs-y += sbi_string.o libsbi-objs-y += sbi_system.o |