summaryrefslogtreecommitdiff
path: root/arch/sh/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 09:52:00 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 09:52:00 (GMT)
commit70e068eef97d05c97c3512f82352f39fdadfa8cb (patch)
tree22f06f18334038993023f78fc199810ea2cfb387 /arch/sh/include
parent94cd049522136c2f3bbe063d2e98b2b8d4286fd3 (diff)
downloadlinux-fsl-qoriq-70e068eef97d05c97c3512f82352f39fdadfa8cb.tar.xz
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/include')
-rw-r--r--arch/sh/include/asm/processor_32.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h
index 1f3d6fa..50b8c9c 100644
--- a/arch/sh/include/asm/processor_32.h
+++ b/arch/sh/include/asm/processor_32.h
@@ -119,19 +119,10 @@ extern int ubc_usercnt;
.sp = sizeof(init_stack) + (long) &init_stack, \
}
-/*
- * Do necessary setup to start up a newly executed thread.
- */
-#define start_thread(_regs, new_pc, new_sp) \
- set_fs(USER_DS); \
- _regs->pr = 0; \
- _regs->sr = SR_FD; /* User mode. */ \
- _regs->pc = new_pc; \
- _regs->regs[15] = new_sp
-
/* Forward declaration, a strange C thing */
struct task_struct;
-struct mm_struct;
+
+extern void start_thread(struct pt_regs *regs, unsigned long new_pc, unsigned long new_sp);
/* Free all resources held by a thread. */
extern void release_thread(struct task_struct *);