sh: Fix up thread info pointer in syscall_badsys resume path.
authorHideo Saito <saito@densan.co.jp>
Thu, 15 May 2008 04:30:05 +0000 (13:30 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 16 May 2008 05:55:07 +0000 (14:55 +0900)
commit561c2bccc7c5cf3d42f38f1f4d61c7b609d4631e
tree6ea17594951e210dbf71c6a445da39faf6b9649a
parente08b954c9a140f2062649faec72514eb505f18c3
sh: Fix up thread info pointer in syscall_badsys resume path.

Entry to resume_userspace expects r8 to contain current_thread_info,
which happens in all paths except for syscall_badsys, where r8 was
being inadvertently trampled. Reload it before the branch.

Signed-off-by: Hideo Saito <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/entry-common.S