Skip to content

Commit

Permalink
sifive: plic: add TODO comment for MAX_INTERRUPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
alevy authored Nov 20, 2024
1 parent 45264b4 commit 9dc8927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chips/sifive/src/plic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ use kernel::utilities::StaticRef;
/// https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc
/// is defining maximum of 1023 interrupt sources
// TODO: replace with const generic for `priority` and `_reserved1` field
// in the [PlicRegisters] when const generic expressions are stable
const MAX_INTERRUPTS: usize = 1023;
/// maximum number of bit-coded registers, 1 bit per interrupt
const MAX_BIT_REGS: usize = MAX_INTERRUPTS.div_ceil(32);
Expand Down

0 comments on commit 9dc8927

Please sign in to comment.