Currently, an external interrupt receives the minor identity in a0. This works for HW-vectored interrupts.
For SW vectored interrupts, it is important to also pass the major identity, so that the dispatcher can call the driver of the external controller.
I propose to change external interrupts to receive in
a0: major identity
a1: minor identity