aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/process_32.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 04:52:00 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 04:52:00 -0500
commit70e068eef97d05c97c3512f82352f39fdadfa8cb (patch)
tree22f06f18334038993023f78fc199810ea2cfb387 /arch/sh/kernel/process_32.c
parent94cd049522136c2f3bbe063d2e98b2b8d4286fd3 (diff)
sh: Move start_thread() out of line.
start_thread() will become a bit heavier with the xstate freeing to be added in, so move it out-of-line in preparation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process_32.c')
-rw-r--r--arch/sh/kernel/process_32.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c
index d8af889366a4..c4361402ec5e 100644
--- a/arch/sh/kernel/process_32.c
+++ b/arch/sh/kernel/process_32.c
@@ -147,6 +147,18 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
147} 147}
148EXPORT_SYMBOL(kernel_thread); 148EXPORT_SYMBOL(kernel_thread);
149 149
150void start_thread(struct pt_regs *regs, unsigned long new_pc,
151 unsigned long new_sp)
152{
153 set_fs(USER_DS);
154
155 regs->pr = 0;
156 regs->sr = SR_FD;
157 regs->pc = new_pc;
158 regs->regs[15] = new_sp;
159}
160EXPORT_SYMBOL(start_thread);
161
150/* 162/*
151 * Free current thread data structures etc.. 163 * Free current thread data structures etc..
152 */ 164 */