[MIPS] Import updates from i386's i8259.c