Skip to content

Commit

Permalink
CRIS: v32: Correct auto-restart of syscalls
Browse files Browse the repository at this point in the history
Register number was incorrect in syscalls
that go via the restartblock (e.g, poll).

Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Jesper Nilsson committed Aug 4, 2010
1 parent e281a31 commit 3992332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs)
}

if (regs->r10 == -ERESTART_RESTARTBLOCK){
regs->r10 = __NR_restart_syscall;
regs->r9 = __NR_restart_syscall;
regs->erp -= 2;
}
}
Expand Down

0 comments on commit 3992332

Please sign in to comment.