diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-27 15:21:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-16 19:03:52 -0400 |
commit | c78e06430ea621ce59d20cb899a9a86bdcf4487b (patch) | |
tree | 4d13c6ad4f6ce9e91a52d4690c0efae32777291c /arch/sparc/kernel/entry.S | |
parent | 32942bc7a609a874f462e1168dbeae20dbc6b79f (diff) |
sparc32: switch to generic kernel_thread()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/entry.S')
-rw-r--r-- | arch/sparc/kernel/entry.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S index dc089702e00a..6114672a1b0e 100644 --- a/arch/sparc/kernel/entry.S +++ b/arch/sparc/kernel/entry.S | |||
@@ -983,6 +983,16 @@ ret_from_fork: | |||
983 | b ret_sys_call | 983 | b ret_sys_call |
984 | ld [%sp + STACKFRAME_SZ + PT_I0], %o0 | 984 | ld [%sp + STACKFRAME_SZ + PT_I0], %o0 |
985 | 985 | ||
986 | .globl ret_from_kernel_thread | ||
987 | ret_from_kernel_thread: | ||
988 | call schedule_tail | ||
989 | ld [%g3 + TI_TASK], %o0 | ||
990 | ld [%sp + STACKFRAME_SZ + PT_G1], %l0 | ||
991 | call %l0 | ||
992 | ld [%sp + STACKFRAME_SZ + PT_G2], %o0 | ||
993 | call do_exit /* won't return */ | ||
994 | clr %o0 | ||
995 | |||
986 | /* Linux native system calls enter here... */ | 996 | /* Linux native system calls enter here... */ |
987 | .align 4 | 997 | .align 4 |
988 | .globl linux_sparc_syscall | 998 | .globl linux_sparc_syscall |