diff options
author | Michal Simek <monstr@monstr.eu> | 2009-04-16 11:30:16 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-04-23 16:09:18 +0200 |
commit | e1c4bd0897b6d03eff4b32197d6ab017f83fc836 (patch) | |
tree | f29010d7c51826a543d4820cef30a9e9b09c27e0 /arch/microblaze/kernel/process.c | |
parent | df4f3eb7c318e34899e9499bc5c9295690f7a106 (diff) | |
download | kernel_samsung_smdk4412-e1c4bd0897b6d03eff4b32197d6ab017f83fc836.zip kernel_samsung_smdk4412-e1c4bd0897b6d03eff4b32197d6ab017f83fc836.tar.gz kernel_samsung_smdk4412-e1c4bd0897b6d03eff4b32197d6ab017f83fc836.tar.bz2 |
microblaze: Move start_thread to process.c
This change is due to upcomming MMU merge
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/process.c')
-rw-r--r-- | arch/microblaze/kernel/process.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index 40cc148..dd15de9 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) /* TBD (used by procfs) */ return 0; } + +/* Set up a thread for executing a new program */ +void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) +{ + set_fs(USER_DS); + regs->pc = pc; + regs->r1 = usp; + regs->pt_mode = 0; +} |