提交 05b8042a 编写于 作者: R Ralf Baechle

Fix one more case of computing the return EPC after the registers have

already been modified.
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 6dd04688
...@@ -447,9 +447,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode) ...@@ -447,9 +447,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode)
preempt_disable(); preempt_disable();
if (ll_bit == 0 || ll_task != current) { if (ll_bit == 0 || ll_task != current) {
compute_return_epc(regs);
regs->regs[reg] = 0; regs->regs[reg] = 0;
preempt_enable(); preempt_enable();
compute_return_epc(regs);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册