diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-12 04:52:00 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-12 04:52:00 -0500 |
commit | 70e068eef97d05c97c3512f82352f39fdadfa8cb (patch) | |
tree | 22f06f18334038993023f78fc199810ea2cfb387 /arch/sh/include/asm | |
parent | 94cd049522136c2f3bbe063d2e98b2b8d4286fd3 (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/include/asm')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 13 |
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 1f3d6fab660c..50b8c9c3fa4c 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; | |||
119 | .sp = sizeof(init_stack) + (long) &init_stack, \ | 119 | .sp = sizeof(init_stack) + (long) &init_stack, \ |
120 | } | 120 | } |
121 | 121 | ||
122 | /* | ||
123 | * Do necessary setup to start up a newly executed thread. | ||
124 | */ | ||
125 | #define start_thread(_regs, new_pc, new_sp) \ | ||
126 | set_fs(USER_DS); \ | ||
127 | _regs->pr = 0; \ | ||
128 | _regs->sr = SR_FD; /* User mode. */ \ | ||
129 | _regs->pc = new_pc; \ | ||
130 | _regs->regs[15] = new_sp | ||
131 | |||
132 | /* Forward declaration, a strange C thing */ | 122 | /* Forward declaration, a strange C thing */ |
133 | struct task_struct; | 123 | struct task_struct; |
134 | struct mm_struct; | 124 | |
125 | extern void start_thread(struct pt_regs *regs, unsigned long new_pc, unsigned long new_sp); | ||
135 | 126 | ||
136 | /* Free all resources held by a thread. */ | 127 | /* Free all resources held by a thread. */ |
137 | extern void release_thread(struct task_struct *); | 128 | extern void release_thread(struct task_struct *); |