summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_csr_detect.h
AgeCommit message (Collapse)AuthorFilesLines
2020-05-10lib: Add csr detect supportAtish Patra1-0/+50
As RISC-V ISA allows many CSRs such as pmp, s/mcounteren to be optional in hardware, OpenSBI should provide an option to dynamically detect these csr access capability at run time. Implement a csr read/write access check helper macros. Signed-off-by: Atish Patra <atish.patra@wdc.com> Tested-by: Jonathan Balkind <jbalkind@cs.princeton.edu> Reviewed-by: Anup Patel <anup.patel@wdc.com>