aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-04-16 11:30:16 +0200
committerMichal Simek <monstr@monstr.eu>2009-04-23 16:09:18 +0200
commite1c4bd0897b6d03eff4b32197d6ab017f83fc836 (patch)
treef29010d7c51826a543d4820cef30a9e9b09c27e0 /arch/microblaze/include
parentdf4f3eb7c318e34899e9499bc5c9295690f7a106 (diff)
downloadkernel_goldelico_gta04-e1c4bd0897b6d03eff4b32197d6ab017f83fc836.zip
kernel_goldelico_gta04-e1c4bd0897b6d03eff4b32197d6ab017f83fc836.tar.gz
kernel_goldelico_gta04-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/include')
-rw-r--r--arch/microblaze/include/asm/processor.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/asm/processor.h
index cea42a3..89aa395 100644
--- a/arch/microblaze/include/asm/processor.h
+++ b/arch/microblaze/include/asm/processor.h
@@ -29,6 +29,9 @@ extern const struct seq_operations cpuinfo_op;
#define task_pt_regs(tsk) \
(((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
+/* Do necessary setup to start up a newly executed thread. */
+void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp);
+
/*
* User space process size: memory size
*
@@ -58,16 +61,6 @@ struct task_struct;
struct thread_struct { };
# define INIT_THREAD { }
-/* Do necessary setup to start up a newly executed thread. */
-static inline void start_thread(struct pt_regs *regs,
- unsigned long pc,
- unsigned long usp)
-{
- regs->pc = pc;
- regs->r1 = usp;
- regs->pt_mode = 0;
-}
-
/* Free all resources held by a thread. */
static inline void release_thread(struct task_struct *dead_task)
{