[MIPS] Rewrite all the assembler interrupt handlers to C.