projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8114c6
)
lib: sbi: Add support for mconfigptr
author
Yangjie Zhang
<jay1273062855@outlook.com>
Thu, 28 Sep 2023 08:27:09 +0000
(16:27 +0800)
committer
Anup Patel
<anup@brainfault.org>
Fri, 6 Oct 2023 12:28:42 +0000
(17:58 +0530)
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 <jay1273062855@outlook.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/riscv_encoding.h
patch
|
blob
|
history
diff --git
a/include/sbi/riscv_encoding.h
b/include/sbi/riscv_encoding.h
index d137bf829f4960a39f9353377269ca81c26475a2..a545242a69dced3b3bb820f13ecee6472d86cdb8 100644
(file)
--- 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