]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
m68knommu: add a task_pt_regs() macro
authorGreg Ungerer <gerg@uclinux.org>
Tue, 7 Jul 2009 05:32:08 +0000 (15:32 +1000)
committerGreg Ungerer <gerg@goober.(none)>
Fri, 4 Dec 2009 01:45:30 +0000 (11:45 +1000)
Add a task_pt_regs() macro as per the CONFIG_UTRACE requirements.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/processor.h

index 74fd674b15ad9f88f712632789098e233f1a0f0f..cbd3d4751dd2998bb8732652b2bb66d9bd9a4b1d 100644 (file)
@@ -165,6 +165,8 @@ unsigned long get_wchan(struct task_struct *p);
        eip; })
 #define        KSTK_ESP(tsk)   ((tsk) == current ? rdusp() : (tsk)->thread.usp)
 
+#define task_pt_regs(tsk)      ((struct pt_regs *) ((tsk)->thread.esp0))
+
 #define cpu_relax()    barrier()
 
 #endif