diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-14 07:41:42 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-23 04:31:01 +0200 |
commit | 7147e215480323bb2617fcebf585c447188ff760 (patch) | |
tree | fb5d92e4f9e2f4d5d5c8e4449c4ef43e05275826 /arch/sh/kernel/entry-common.S | |
parent | Linux 3.7-rc1 (diff) | |
download | linux-7147e215480323bb2617fcebf585c447188ff760.tar.xz linux-7147e215480323bb2617fcebf585c447188ff760.zip |
sh: switch to generic kernel_thread()/kernel_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sh/kernel/entry-common.S')
-rw-r--r-- | arch/sh/kernel/entry-common.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/kernel/entry-common.S b/arch/sh/kernel/entry-common.S index b96489d8b27d..9b6e4beeb296 100644 --- a/arch/sh/kernel/entry-common.S +++ b/arch/sh/kernel/entry-common.S @@ -297,6 +297,19 @@ ret_from_fork: mov r0, r4 bra syscall_exit nop + + .align 2 + .globl ret_from_kernel_thread +ret_from_kernel_thread: + mov.l 1f, r8 + jsr @r8 + mov r0, r4 + mov.l @(OFF_R5,r15), r5 ! fn + jsr @r5 + mov.l @(OFF_R4,r15), r4 ! arg + bra syscall_exit + nop + .align 2 1: .long schedule_tail |