diff options
| author | Samuel Holland <[email protected]> | 2022-06-12 20:03:50 -0500 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-06-13 11:54:06 +0530 |
| commit | 8c362e7d065eaf4d55da23a190a464ba870f89aa (patch) | |
| tree | 0e329ebde4ba12c1119e7dfc299d63bcf33b0588 /lib/utils/timer | |
| parent | 2ea7799d563ed9bbaf3b677728e928a6cd8f580c (diff) | |
lib: irqchip/plic: Factor out a context init function
This simplifies both the callers and the callees by removing duplicated
code and consolidating the error handling. It also fixes two bugs in the
process:
1) ie_words was one too large when plic->num_src was a multiple of 32.
2) plic_set_ie takes a 32-bit mask, not a Boolean value, so the FPGA
platforms previously only enabled one out of every 32 interrupts.
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Diffstat (limited to 'lib/utils/timer')
0 files changed, 0 insertions, 0 deletions
