linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC] [PATCH] task_pt_regs for powerpc systems
@ 2008-07-07 14:22 Srinivasa D S
  2008-07-08  6:21 ` Benjamin Herrenschmidt
  2008-07-13 22:32 ` Paul Mackerras
  0 siblings, 2 replies; 13+ messages in thread
From: Srinivasa D S @ 2008-07-07 14:22 UTC (permalink / raw)
  To: linuxppc-dev, Ananth Mavinakayanahalli, benh, paulus

Hi
 task_pt_regs() macro defines pt_regs for the given task,  this macro is  
currently not defined for powerpc arch. We need this macro for 
upcoming utrace features. 
 Below attached patch  defines this macro for powerpc arch. Please let 
me know your comments on this.

Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>


---
 include/asm-powerpc/processor.h |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.26-rc9/include/asm-powerpc/processor.h
===================================================================
--- linux-2.6.26-rc9.orig/include/asm-powerpc/processor.h
+++ linux-2.6.26-rc9/include/asm-powerpc/processor.h
@@ -214,6 +214,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)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-07-15 11:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 14:22 [RFC] [PATCH] task_pt_regs for powerpc systems Srinivasa D S
2008-07-08  6:21 ` Benjamin Herrenschmidt
2008-07-13 22:32 ` Paul Mackerras
2008-07-13 22:40   ` Benjamin Herrenschmidt
2008-07-14  8:31   ` Srinivasa D S
2008-07-14  9:06     ` Benjamin Herrenschmidt
2008-07-15  9:06       ` Srinivasa D S
2008-07-15  9:15         ` Benjamin Herrenschmidt
2008-07-15 10:30           ` Srinivasa DS
2008-07-15 10:37             ` Benjamin Herrenschmidt
2008-07-14 17:21     ` Timur Tabi
2008-07-14 17:36       ` Andreas Schwab
2008-07-15  9:21         ` Srinivasa D S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).