aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2010-08-03 09:55:48 -0400
committerJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 07:02:01 -0400
commit399233265c2ce805cf19a4f56f79836faad6a034 (patch)
tree601c99a113242d7e091b88680ee54b1522a162c8 /arch/cris
parente281a31e1c08e02d05c6fa1c11968c9369e4d809 (diff)
CRIS: v32: Correct auto-restart of syscalls
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>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v32/kernel/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c
index 0b7e3f143281..b3a05ae56214 100644
--- a/arch/cris/arch-v32/kernel/signal.c
+++ b/arch/cris/arch-v32/kernel/signal.c
@@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs)
587 } 587 }
588 588
589 if (regs->r10 == -ERESTART_RESTARTBLOCK){ 589 if (regs->r10 == -ERESTART_RESTARTBLOCK){
590 regs->r10 = __NR_restart_syscall; 590 regs->r9 = __NR_restart_syscall;
591 regs->erp -= 2; 591 regs->erp -= 2;
592 } 592 }
593 } 593 }