summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2009-06-24 03:32:18 +0200
committerKyle McMartin <kyle@mcmartin.ca>2009-07-03 05:34:11 +0200
commitabf1e11a0dcf5514139cb76ed8eb050107653abd (patch)
treeac8118585f584a3eedd2d9d1e821876ba76b7849
parentparisc: wire sys_perf_counter_open to sys_ni_syscall (diff)
downloadlinux-abf1e11a0dcf5514139cb76ed8eb050107653abd.tar.xz
linux-abf1e11a0dcf5514139cb76ed8eb050107653abd.zip
parisc: add task_pt_regs macro
needed for perf_counters. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
-rw-r--r--arch/parisc/include/asm/processor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index 9d64df8754ba..9ce66e9d1c2b 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
@@ -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)