Skip to content

Commit

Permalink
parisc: add task_pt_regs macro
Browse files Browse the repository at this point in the history
needed for perf_counters.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
  • Loading branch information
Kyle McMartin committed Jul 3, 2009
1 parent 538e236 commit abf1e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/parisc/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit abf1e11

Please sign in to comment.