Skip to content

Commit

Permalink
powerpc: Implement task_pt_regs() accessor
Browse files Browse the repository at this point in the history
The task_pt_regs() macro allows access to the pt_regs of a given task.

This macro is not currently defined for the powerpc architecture, but
we need it for some upcoming utrace additions.

Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Srinivasa Ds authored and Benjamin Herrenschmidt committed Jul 9, 2008
1 parent 058c78f commit e5093ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-powerpc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ struct thread_struct {
#define thread_saved_pc(tsk) \
((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)

#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs)

unsigned long get_wchan(struct task_struct *p);

#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
Expand Down

0 comments on commit e5093ff

Please sign in to comment.