From 37f9b0f2f265b2f312d974fb8d100b85b3faf94f Mon Sep 17 00:00:00 2001 From: Atish Patra <atish.patra@wdc.com> Date: Sat, 10 Jul 2021 09:18:13 -0700 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sbi/sbi_ecall.h b/include/sbi/sbi_ecall.h index 63ef866..9500d04 100644 --- a/include/sbi/sbi_ecall.h +++ b/include/sbi/sbi_ecall.h @@ -39,6 +39,7 @@ extern struct sbi_ecall_extension ecall_ipi; extern struct sbi_ecall_extension ecall_vendor; extern struct sbi_ecall_extension ecall_hsm; extern struct sbi_ecall_extension ecall_srst; +extern struct sbi_ecall_extension ecall_pmu; u16 sbi_ecall_version_major(void); -- cgit v1.2.3