CAUSEB_IP
#define DEC_CPU_IRQ_MASK(n) (1 << ((n) + CAUSEB_IP))
#define DEC_CPU_IRQ_ALL (0xff << CAUSEB_IP)
return (read_c0_cause() >> cp0_compare_irq_shift) & (1ul << CAUSEB_IP);
cp0_compare_irq_shift = CAUSEB_TI - CAUSEB_IP;
pending >>= CAUSEB_IP;
pending >>= CAUSEB_IP;