summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_scratch.h
diff options
context:
space:
mode:
authorPragnesh Patel <pragnesh.patel@sifive.com>2020-09-23 10:14:17 +0300
committerAnup Patel <anup@brainfault.org>2020-09-25 11:52:22 +0300
commit7701ea13be4c6e2e16cce334e03ff8ab5b5e1d60 (patch)
tree8dcd7c16ec0f493b5e3f8bca97b7dcc4e34d01bf /include/sbi/sbi_scratch.h
parentaaeca7eb4efa96cfde3973f425a6769b50285756 (diff)
downloadopensbi-7701ea13be4c6e2e16cce334e03ff8ab5b5e1d60.tar.xz
lib: sbi: Fix PMP CSR detection
HiFive unleashed currently implements fewer than 56 bits of physical address so existing PMP CSR detection is broken. PMP address register encodes bits 55-2 of a 56-bit physical address, Not all physical address bits may be implemented, So just check minimum 1 bit. Fixes: 74d1db706293 ("lib: sbi: Improve PMP CSR detection and progamming") Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_scratch.h')
0 files changed, 0 insertions, 0 deletions