I don't think this will help, but it's worth a test, prior to totally re-writing entry.S. There's a chance of confusion of the value of regs->r0 if there is in fact no error. r~