aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/process.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c
index 40cc1480810e..dd15de9cde39 100644
--- a/arch/microblaze/kernel/process.c
+++ b/arch/microblaze/kernel/process.c
@@ -182,3 +182,12 @@ unsigned long get_wchan(struct task_struct *p)
182/* TBD (used by procfs) */ 182/* TBD (used by procfs) */
183 return 0; 183 return 0;
184} 184}
185
186/* Set up a thread for executing a new program */
187void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp)
188{
189 set_fs(USER_DS);
190 regs->pc = pc;
191 regs->r1 = usp;
192 regs->pt_mode = 0;
193}