From: Kyle McMartin Date: Wed, 24 Jun 2009 01:32:18 +0000 (-0400) Subject: parisc: add task_pt_regs macro X-Git-Tag: v2.6.31-rc2~2^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abf1e11a0dcf5514139cb76ed8eb050107653abd;p=platform%2Fkernel%2Flinux-3.10.git parisc: add task_pt_regs macro needed for perf_counters. Signed-off-by: Kyle McMartin --- diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h index 9d64df8..9ce66e9 100644 --- a/arch/parisc/include/asm/processor.h +++ b/arch/parisc/include/asm/processor.h @@ -18,6 +18,7 @@ #include #include #include + #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)