提交 39923326 编写于 作者: J Jesper Nilsson

CRIS: v32: Correct auto-restart of syscalls

Register number was incorrect in syscalls
that go via the restartblock (e.g, poll).
Signed-off-by: NEdgar Iglesias <Edgar.Iglesias@axis.com>
Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
上级 e281a31e
...@@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs) ...@@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs)
} }
if (regs->r10 == -ERESTART_RESTARTBLOCK){ if (regs->r10 == -ERESTART_RESTARTBLOCK){
regs->r10 = __NR_restart_syscall; regs->r9 = __NR_restart_syscall;
regs->erp -= 2; regs->erp -= 2;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册