nios2: irq: Move external IRQ handling logic

Less assembler around always means more happiness!

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>