CR_INT_MASK
pending = trapframe->cause & CR_INT_MASK & trapframe->sr;
if ((mask & ~CR_INT_MASK) != 0)