From 3ba2eb82cafa938c1c3f7ef9d2da06912a49d8e0 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 30 Apr 2009 10:20:41 -0500 Subject: Fixed uaddr tapset function for ppc64 by adding task_pt_regs() definition. PR10117 fix. * tapset/context.stp: Added ppc64 task_pt_regs() definition if it dooesn't already exist. --- tapset/context.stp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tapset/context.stp') diff --git a/tapset/context.stp b/tapset/context.stp index 6fad3740..fcb60201 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -14,6 +14,12 @@ %{ #include + +#if defined(__powerpc64__) +#if !defined(task_pt_regs) +#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs) +#endif +#endif %} /** -- cgit