diff options
| author | Bin Meng <bmeng@tinylab.org> | 2022-12-11 14:54:23 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2022-12-17 09:02:40 +0530 |
| commit | fabbc006687a0fddeabb7a3effabb3a8e1c81c48 (patch) | |
| tree | 574dbf81a813f6c39b33aa5d238fed15cf3ff6dd /lib/utils/timer/fdt_timer_mtimer.c | |
| parent | 91c8a7d5cef1e9729c1c2bad549ebc69afeadb3b (diff) | |
| download | opensbi-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
