Save the SPSR with the other context for IRQs

We need to save the SPSR when entering an interrupt, in case the active
process changes as a result of servicing the interrupt. Without this
change, some per-process status information, such as the result of the
last comparison is corrupted.