[RFC 3/3] lib: sbi: enable seed access in S-mode

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Oct 30 09:41:52 PDT 2023


On 10/29/23 01:49, Heinrich Schuchardt wrote:
> If ISA extension Zkr is available, set
> 
>      mseccfg.sseed=1
>      mseccfg.useed=0
> 
> This enables access to the seed CSR in S-mode but not in U-mode.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Anup pointed me to a previous patch:

lib: sbi: Configure seed bits when MSECCFG is readable
https://patchwork.ozlabs.org/project/opensbi/patch/20230712083254.1585244-1-sameo@rivosinc.com/

Best regards

Heinrich



More information about the opensbi mailing list