]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix restartable syscall arg5 clobbering.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 18 Jun 2007 01:08:20 +0000 (10:08 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Jun 2007 01:08:20 +0000 (10:08 +0900)
commit1c887df15b7fff8c4023130ab1ff16375f8f8011
treee097e9317f5c2e3e03125dfd1e232dfbcebd4a3a
parentc1f73235f5438071af6967251a6cab010dd3ad0c
sh: Fix restartable syscall arg5 clobbering.

We use R0 as the 5th argument of syscall.  When the syscall restarts
after signal handling, we should restore the old value of R0.
The attached patch does it. Without this patch, I've experienced random
failures in the situation which signals are issued frequently.

Signed-off-by: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/signal.c