pub trait InterfaceCPU: Send + Sync {
// Required methods
fn get_and_acknowledge_interrupt(&self) -> Option<IrqId>;
fn end_interrupt(&self, irq: IrqId);
}
Expand description
在中断中调用,不会被打断,视为Sync
pub trait InterfaceCPU: Send + Sync {
// Required methods
fn get_and_acknowledge_interrupt(&self) -> Option<IrqId>;
fn end_interrupt(&self, irq: IrqId);
}
在中断中调用,不会被打断,视为Sync