lib: sbi: Implement SBI PMU extension
authorAtish Patra <atish.patra@wdc.com>
Sat, 10 Jul 2021 16:18:13 +0000 (09:18 -0700)
committerAnup Patel <anup@brainfault.org>
Sun, 11 Jul 2021 05:08:02 +0000 (10:38 +0530)
commit37f9b0f2f265b2f312d974fb8d100b85b3faf94f
tree914b0a37f87f7fe6a8bee2f248019bfa15012055
parentae72ec091508196e29c07ae46bca106373d31e39
lib: sbi: Implement SBI PMU extension

RISC-V SBI specfication 0.3 defines a PMU extension that allows supervisor
mode to start/stop/configure pmu related events. This patch implements
all of the functionality defined in the specification.

Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_ecall.h
lib/sbi/objects.mk
lib/sbi/sbi_ecall.c
lib/sbi/sbi_ecall_pmu.c [new file with mode: 0644]
lib/sbi/sbi_pmu.c