pub fn claim_interrupt_sources(bits: u32)Expand description
Declare that a handler in front of psx-rt’s owns the I_STAT sources in
bits (a mask of [psx_hw::irq::source] positions).
psx-rt’s handler acknowledges an enabled source that is pending when no
VBlank is, because nothing it knows owns it. A wrapper chained in front
(psx-cdstream’s for the CD controller, the pad engine’s for the controller
port and root counter 0) does own its sources, but an interrupt can arrive
while another wrapper’s handler runs, or while its own runs with interrupts
off, and so reach psx-rt’s handler pending, where the acknowledge loses it:
a CD sector, a pad byte. A claimed source is left pending, and the exception
is taken again at once, into the owner. Call from foreground code when the
wrapper is installed; release_interrupt_sources undoes it.