]> err.no Git - linux-2.6/commit
sparc: Fix fork/clone/vfork system call restart.
authorDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2008 23:21:28 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2008 23:21:28 +0000 (16:21 -0700)
commit1e38c126c9252b612697e34f43b1b3371c8ee31d
tree32f4d7635b9acb3c1210d46193ca777021fd52a3
parent5816339310b2d9623cf413d33e538b45e815da5d
sparc: Fix fork/clone/vfork system call restart.

We clobber %i1 as well as %i0 for these system calls,
because they give two return values.

Therefore, on error, we have to restore %i1 properly
or else the restart explodes since it uses the wrong
arguments.

This fixes glibc's nptl/tst-eintr1.c testcase.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/process.c
arch/sparc64/kernel/process.c