summaryrefslogtreecommitdiff
path: root/lib/utils/timer/fdt_timer_mtimer.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <[email protected]>2024-09-02 13:21:10 +0300
committerAnup Patel <[email protected]>2024-10-28 11:05:14 +0530
commit1a2e507d2347500e6c994e005fb9725b2a9a8e8f (patch)
treec126365a1447ee70165c50ece0d160dc68eb31f5 /lib/utils/timer/fdt_timer_mtimer.c
parent62447cd7aa17097cefdb0d7a2f1312ff55fcda27 (diff)
lib: sbi: fix number of PMP entries detection
CSR_PMPADDRn lower bits may read all-0 or all-1, depending on the configuration. For TOR it is all-0, for NAPOT - all-1. Thus if PMP entry was pre-configured as NAPOT, original code would stop scanning because value read back not equal to the written one. Mask lower bits before comparison to fix this Signed-off-by: Vladimir Kondratiev <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/fdt_timer_mtimer.c')
0 files changed, 0 insertions, 0 deletions