diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-16 12:05:09 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-01 00:44:44 -0400 |
commit | 533e6903bea0440816a0f517b0845ccea4cc7917 (patch) | |
tree | bc01397ec305de38476ab9dab8b33c1b2d492379 /arch/m68k/kernel/entry.S | |
parent | 0973c687e05a802a757664722678d2b5016f1c1c (diff) | |
download | op-kernel-dev-533e6903bea0440816a0f517b0845ccea4cc7917.zip op-kernel-dev-533e6903bea0440816a0f517b0845ccea4cc7917.tar.gz |
m68k: split ret_from_fork(), simplify kernel_thread()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m68k/kernel/entry.S')
-rw-r--r-- | arch/m68k/kernel/entry.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S index 165ee9f..8a01f58 100644 --- a/arch/m68k/kernel/entry.S +++ b/arch/m68k/kernel/entry.S @@ -111,6 +111,17 @@ ENTRY(ret_from_fork) addql #4,%sp jra ret_from_exception +ENTRY(ret_from_kernel_thread) + | a3 contains the kernel thread payload, d7 - its argument + movel %d1,%sp@- + jsr schedule_tail + GET_CURRENT(%d0) + movel %d7,(%sp) + jsr %a3@ + addql #4,%sp + movel %d0,(%sp) + jra sys_exit + #if defined(CONFIG_COLDFIRE) || !defined(CONFIG_MMU) #ifdef TRAP_DBG_INTERRUPT |