MN10300: Fix ret_from_kernel_thread
authorDavid Howells <[email protected]>
Tue, 28 May 2013 19:21:02 +0000 (20:21 +0100)
committerLinus Torvalds <[email protected]>
Thu, 30 May 2013 04:38:48 +0000 (13:38 +0900)
commit1e00227d4e8017ac9c3f73bf949a06c6e27f5122
tree4c95be672e90ea282807a2d8d30367d550d0b5e8
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
MN10300: Fix ret_from_kernel_thread

ret_from_kernel_thread needs to set A2 to the thread_info pointer before
jumping to syscall_exit.

Without this, we never correctly start userspace.

This was caused by the rejuggling of the fork/exec paths in commit
ddf23e87a804 ("mn10300: switch to saner kernel_execve() semantics")

Reported-by: Ken Cox <[email protected]>
Signed-off-by: David Howells <[email protected]>
Acked-by: Ken Cox <[email protected]>
Acked-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/mn10300/kernel/entry.S