Commit abf1e11a authored by Kyle McMartin's avatar Kyle McMartin

parisc: add task_pt_regs macro

needed for perf_counters.
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 538e2361
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/types.h> #include <asm/types.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/percpu.h> #include <asm/percpu.h>
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#define KERNEL_STACK_SIZE (4*PAGE_SIZE) #define KERNEL_STACK_SIZE (4*PAGE_SIZE)
...@@ -127,6 +128,8 @@ struct thread_struct { ...@@ -127,6 +128,8 @@ struct thread_struct {
unsigned long flags; unsigned long flags;
}; };
#define task_pt_regs(tsk) ((struct pt_regs *)&((tsk)->thread.regs))
/* Thread struct flags. */ /* Thread struct flags. */
#define PARISC_UAC_NOPRINT (1UL << 0) /* see prctl and unaligned.c */ #define PARISC_UAC_NOPRINT (1UL << 0) /* see prctl and unaligned.c */
#define PARISC_UAC_SIGBUS (1UL << 1) #define PARISC_UAC_SIGBUS (1UL << 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment