summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYangjie Zhang <[email protected]>2023-09-28 16:27:09 +0800
committerAnup Patel <[email protected]>2023-10-06 17:58:42 +0530
commit3632f2b5c43e2a01bbfdcf4864d358845dcf281e (patch)
tree3b9d71cd9e51ee0d4f59046420081ec5173c14ab
parente8114c6ae2f9ae2db96e49907710434557b0dc2a (diff)
lib: sbi: Add support for mconfigptr
RISC-V privileged specification v1.12 introduced the mconfigptr CSR which will hold the physical address of a configuration data structure. Signed-off-by: Yangjie Zhang <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--include/sbi/riscv_encoding.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h
index d137bf82..a545242a 100644
--- a/include/sbi/riscv_encoding.h
+++ b/include/sbi/riscv_encoding.h
@@ -430,6 +430,7 @@
#define CSR_MARCHID 0xf12
#define CSR_MIMPID 0xf13
#define CSR_MHARTID 0xf14
+#define CSR_MCONFIGPTR 0xf15
/* Machine Trap Setup */
#define CSR_MSTATUS 0x300