microblaze: Move task_pt_regs up
authorMichal Simek <monstr@monstr.eu>
Thu, 16 Apr 2009 09:05:26 +0000 (11:05 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 23 Apr 2009 14:09:17 +0000 (16:09 +0200)
This change is important for easier merge with Microblaze MMU code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/processor.h

index 4bed76d..cea42a3 100644 (file)
@@ -26,6 +26,9 @@ extern const struct seq_operations cpuinfo_op;
 
 # endif /* __ASSEMBLY__ */
 
+#define task_pt_regs(tsk) \
+               (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
+
 /*
  * User space process size: memory size
  *
@@ -84,9 +87,6 @@ extern unsigned long get_wchan(struct task_struct *p);
  */
 extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
 
-# define task_pt_regs(tsk) \
-               (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
-
 # define KSTK_EIP(tsk) (0)
 # define KSTK_ESP(tsk) (0)