]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
parisc: add task_pt_regs macro
authorKyle McMartin <kyle@mcmartin.ca>
Wed, 24 Jun 2009 01:32:18 +0000 (21:32 -0400)
committerKyle McMartin <kyle@mcmartin.ca>
Fri, 3 Jul 2009 03:34:11 +0000 (03:34 +0000)
needed for perf_counters.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/include/asm/processor.h

index 9d64df8754ba5203c9a7299038ab5c01ea68185b..9ce66e9d1c2b845275c41aaaf290a5fb5e123ba1 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/types.h>
 #include <asm/system.h>
 #include <asm/percpu.h>
+
 #endif /* __ASSEMBLY__ */
 
 #define KERNEL_STACK_SIZE      (4*PAGE_SIZE)
@@ -127,6 +128,8 @@ struct thread_struct {
        unsigned long  flags;
 }; 
 
+#define task_pt_regs(tsk) ((struct pt_regs *)&((tsk)->thread.regs))
+
 /* Thread struct flags. */
 #define PARISC_UAC_NOPRINT     (1UL << 0)      /* see prctl and unaligned.c */
 #define PARISC_UAC_SIGBUS      (1UL << 1)