summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_ecall.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2021-07-10 19:18:13 +0300
committerAnup Patel <anup@brainfault.org>2021-07-11 08:08:02 +0300
commit37f9b0f2f265b2f312d974fb8d100b85b3faf94f (patch)
tree914b0a37f87f7fe6a8bee2f248019bfa15012055 /include/sbi/sbi_ecall.h
parentae72ec091508196e29c07ae46bca106373d31e39 (diff)
downloadopensbi-37f9b0f2f265b2f312d974fb8d100b85b3faf94f.tar.xz
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>
Diffstat (limited to 'include/sbi/sbi_ecall.h')
-rw-r--r--include/sbi/sbi_ecall.h1
1 files changed, 1 insertions, 0 deletions
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);