()
| 24 | } |
| 25 | |
| 26 | impl Plic { |
| 27 | pub fn new() -> Self { |
| 28 | Self { |
| 29 | priority: [0; MAX_SOURCES], |
| 30 | pending: [0; MAX_SOURCES.div_ceil(32)], |
| 31 | enable: [0; MAX_SOURCES.div_ceil(32) * MAX_CONTEXTS], |
| 32 | threshold: [0; MAX_CONTEXTS], |
| 33 | claim_complete: [0; MAX_CONTEXTS], |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | pub fn set_irq(&mut self, source: u32) { |
nothing calls this directly
no outgoing calls
no test coverage detected