MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / new

Method new

crates/virtual-machine/src/devices/plic.rs:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26impl 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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected