Browse Source

m68knommu: add a task_pt_regs() macro

Add a task_pt_regs() macro as per the CONFIG_UTRACE requirements.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Greg Ungerer 16 years ago
parent
commit
c23b6538d0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/m68k/include/asm/processor.h

+ 2 - 0
arch/m68k/include/asm/processor.h

@@ -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