From 280f7ae62724b184fdd61347e6f905bc39dec64b Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 29 Oct 2023 00:49:57 +0200 Subject: [PATCH] include: sbi: macros for mseccfg.sseed and .useed Define macros to access the sseed and the useed bit in the machine security configuration register (mseccfg). Signed-off-by: Heinrich Schuchardt Reviewed-by: Xiang W Reviewed-by: Anup Patel --- include/sbi/riscv_encoding.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index a545242a..0996d649 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -678,6 +678,10 @@ #define MSECCFG_MMWP (_UL(1) << MSECCFG_MMWP_SHIFT) #define MSECCFG_RLB_SHIFT (2) #define MSECCFG_RLB (_UL(1) << MSECCFG_RLB_SHIFT) +#define MSECCFG_USEED_SHIFT (8) +#define MSECCFG_USEED (_UL(1) << MSECCFG_USEED_SHIFT) +#define MSECCFG_SSEED_SHIFT (9) +#define MSECCFG_SSEED (_UL(1) << MSECCFG_SSEED_SHIFT) /* Counter Overflow CSR */ #define CSR_SCOUNTOVF 0xda0