sparc: move do_interrupt to helper.c