diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-19 13:05:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-01 00:53:24 -0400 |
commit | 255461c53a91d34e2eddb8c8a2ba39e99065d7c1 (patch) | |
tree | 0c758f750337edf712204b72f9ce5bcec60af1b0 /arch/mn10300/kernel/entry.S | |
parent | 49ed3398b75c98c087537a7d5a1a23f86a8c8746 (diff) |
mn10300: split ret_from_fork, simplify kernel_thread()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mn10300/kernel/entry.S')
-rw-r--r-- | arch/mn10300/kernel/entry.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mn10300/kernel/entry.S b/arch/mn10300/kernel/entry.S index 8e11f9f4899..000f144230a 100644 --- a/arch/mn10300/kernel/entry.S +++ b/arch/mn10300/kernel/entry.S @@ -55,6 +55,13 @@ ENTRY(ret_from_fork) mov d0,(REG_D0,fp) jmp syscall_exit +ENTRY(ret_from_kernel_thread) + call schedule_tail[],0 + mov (REG_D0,fp),d0 + mov (REG_A0,fp),a0 + calls (a0) + jmp sys_exit + ############################################################################### # # system call handler |