CRIS: v32: Correct auto-restart of syscalls
authorJesper Nilsson <jesper.nilsson@axis.com>
Tue, 3 Aug 2010 13:55:48 +0000 (15:55 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 11:02:01 +0000 (13:02 +0200)
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>
arch/cris/arch-v32/kernel/signal.c

index 0b7e3f1..b3a05ae 100644 (file)
@@ -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;
                }
        }