feat(kernel): SystemControl cap for halt, board device table + boot caps to init, RegionAddress syscall, idle loop services irqs
This commit is contained in:
@@ -30,6 +30,11 @@ impl IrqRoutingTable {
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether `irq` is a line this table can route.
|
||||
pub fn is_valid(&self, irq: IrqId) -> bool {
|
||||
(irq.raw() as usize) < MAX_IRQS
|
||||
}
|
||||
|
||||
/// Routes `irq`, replacing any previous route. Fails for lines beyond
|
||||
/// the table.
|
||||
pub fn set(&mut self, irq: IrqId, route: IrqRoute) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user