Trait InterfaceCPU

Source
pub trait InterfaceCPU: Send + Sync {
    // Required methods
    fn get_and_acknowledge_interrupt(&self) -> Option<IrqId>;
    fn end_interrupt(&self, irq: IrqId);
}
Expand description

在中断中调用,不会被打断,视为Sync

Required Methods§

Implementors§

Source§

impl InterfaceCPU for arm_gic_driver::v2::GicCpu

Source§

impl InterfaceCPU for arm_gic_driver::v3::GicCpu