aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/timer/fdt_timer_mtimer.c
diff options
context:
space:
mode:
authorBin Meng <bmeng@tinylab.org>2022-12-11 14:54:23 +0800
committerAnup Patel <anup@brainfault.org>2022-12-17 09:02:40 +0530
commitfabbc006687a0fddeabb7a3effabb3a8e1c81c48 (patch)
tree574dbf81a813f6c39b33aa5d238fed15cf3ff6dd /lib/utils/timer/fdt_timer_mtimer.c
parent91c8a7d5cef1e9729c1c2bad549ebc69afeadb3b (diff)
downloadopensbi-fabbc006687a0fddeabb7a3effabb3a8e1c81c48.zip
opensbi-fabbc006687a0fddeabb7a3effabb3a8e1c81c48.tar.gz
opensbi-fabbc006687a0fddeabb7a3effabb3a8e1c81c48.tar.bz2
lib: utils/irqchip: plic: Fix the off-by-one error in context save/restore helpers
plic->num_src holds the number of interrupt sources without interrupt source 0 but the interrupt enable register includes a bit for the interrupt source 0 in the first word. Fixes: 415ecf28f7ad ("lib: irqchip/plic: Add context save/restore helpers") Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'lib/utils/timer/fdt_timer_mtimer.c')
0 files changed, 0 insertions, 0 deletions