remove useless code, set r0 ~ r12 register, after process switch, restore the register value