Expand description
Interrupt controller: pending and enabled sources.
The register addresses and source bit positions live in
[psx_hw::irq].
Modules§
- source
- Moved to [
psx_hw::irq::source].
Functions§
- ack
Deprecated - Renamed to
acknowledge. - acknowledge
- Acknowledge pending bits by writing
!(bits)– the hardware AND-accumulates, so any bit left 1 in the written value is preserved, any bit that was 0 is cleared. - disable_
cpu_ ⚠interrupts - Clear the CPU’s interrupt-enable bit (COP0
SR.IEc) and report whether it was set, sorestore_cpu_interruptscan put it back. Sections nest. - mask
- Enabled interrupt sources (the mask register).
- pending
- Pending interrupt sources, one bit per [
psx_hw::irq::source] position. - restore_
cpu_ ⚠interrupts - Put back the interrupt-enable bit
disable_cpu_interruptsfound. - set_
mask - Set the mask register (who can interrupt the CPU).
- without_
interrupts - Run
fwith CPU interrupts masked, then restore the previous state.