CRIS v10: correct do_signal to fix oops and clean up signal handling in general