32x: improve interrupt handling