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) | |
download | blackbird-op-linux-c78e06430ea621ce59d20cb899a9a86bdcf4487b.tar.gz blackbird-op-linux-c78e06430ea621ce59d20cb899a9a86bdcf4487b.zip |
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: b ret_sys_call ld [%sp + STACKFRAME_SZ + PT_I0], %o0 + .globl ret_from_kernel_thread +ret_from_kernel_thread: + call schedule_tail + ld [%g3 + TI_TASK], %o0 + ld [%sp + STACKFRAME_SZ + PT_G1], %l0 + call %l0 + ld [%sp + STACKFRAME_SZ + PT_G2], %o0 + call do_exit /* won't return */ + clr %o0 + /* Linux native system calls enter here... */ .align 4 .globl linux_sparc_syscall |