[MIPS] Fix the build error of Wind River PPMC board, rewrite irq code to C