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 <jay1273062855@outlook.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Yangjie Zhang
2023-09-28 16:27:09 +08:00
committed by Anup Patel
parent e8114c6ae2
commit 3632f2b5c4

View File

@@ -430,6 +430,7 @@
#define CSR_MARCHID 0xf12 #define CSR_MARCHID 0xf12
#define CSR_MIMPID 0xf13 #define CSR_MIMPID 0xf13
#define CSR_MHARTID 0xf14 #define CSR_MHARTID 0xf14
#define CSR_MCONFIGPTR 0xf15
/* Machine Trap Setup */ /* Machine Trap Setup */
#define CSR_MSTATUS 0x300 #define CSR_MSTATUS 0x300