lib: sbi: Add support for mconfigptr
authorYangjie Zhang <jay1273062855@outlook.com>
Thu, 28 Sep 2023 08:27:09 +0000 (16:27 +0800)
committerAnup 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

index d137bf829f4960a39f9353377269ca81c26475a2..a545242a69dced3b3bb820f13ecee6472d86cdb8 100644 (file)
 #define CSR_MARCHID                    0xf12
 #define CSR_MIMPID                     0xf13
 #define CSR_MHARTID                    0xf14
+#define CSR_MCONFIGPTR                 0xf15
 
 /* Machine Trap Setup */
 #define CSR_MSTATUS                    0x300