[PATCH] Fix ptrace/strace
commitb37d1b4106088c4f6b1e9c1d75a0f31f00640417
authorRichard Mortimer <richm@oldelvet.org.uk>
Tue, 10 Jan 2006 21:30:54 +0000 (10 13:30 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 15 Jan 2006 06:15:30 +0000 (14 22:15 -0800)
tree8dca3189fb9baef23a0f7d7a3d866229f7dee554
parent711f4b02bc48b9f208c96352995c19f107381a80
[PATCH] Fix ptrace/strace

Don't clobber register %l0 while checking TI_SYS_NOERROR value in
syscall return path.  This bug was introduced by:

db7d9a4eb700be766cc9f29241483dbb1e748832

Problem narrowed down by Luis F. Ortiz and Richard Mortimer.

I tried using %l2 as suggested by Luis and that works for me.

Looking at the code I wonder if it makes sense to simplify the code
a little bit. The following works for me but I'm not sure how to
exercise the "NOERROR" codepath.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/sparc64/kernel/entry.S