modify swi to accept irq