Skip to content

Commit e5093ff

Browse files
Srinivasa Dsozbenh
authored andcommitted
powerpc: Implement task_pt_regs() accessor
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>
1 parent 058c78f commit e5093ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/asm-powerpc/processor.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ struct thread_struct {
234234
#define thread_saved_pc(tsk) \
235235
((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
236236

237+
#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs)
238+
237239
unsigned long get_wchan(struct task_struct *p);
238240

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

0 commit comments

Comments
 (0)