Commit fabbc006 authored by Bin Meng's avatar Bin Meng Committed by Anup Patel
Browse files

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: 415ecf28

 ("lib: irqchip/plic: Add context save/restore helpers")
Signed-off-by: default avatarBin Meng <bmeng@tinylab.org>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Reviewed-by: default avatarSamuel Holland <samuel@sholland.org>
parent 91c8a7d5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment