Commit 33dc0ad7 authored by Jesper Nilsson's avatar Jesper Nilsson

Correct auto-restart of syscalls via restartblock

This would for example be poll(2)
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 33874cb8
...@@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs) ...@@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs)
RESTART_CRIS_SYS(regs); RESTART_CRIS_SYS(regs);
} }
if (regs->r10 == -ERESTART_RESTARTBLOCK) { if (regs->r10 == -ERESTART_RESTARTBLOCK) {
regs->r10 = __NR_restart_syscall; regs->r9 = __NR_restart_syscall;
regs->irp -= 2; regs->irp -= 2;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment