[RFC] [PATCH] task_pt_regs for powerpc systems

Srinivasa D S srinivasa at in.ibm.com
Tue Jul 15 19:06:55 EST 2008


On Monday 14 July 2008 02:36:57 pm Benjamin Herrenschmidt wrote:

> > Signed-off-by: Srinivasa DS <srinivasa at in.ibm.com>
>
> Can you send a cleanup patch against powerpc.git instead ?
>

Resending the patch against powerpc.git tree.


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


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

Index: powerpc.git/include/asm-powerpc/processor.h
===================================================================
--- powerpc.git.orig/include/asm-powerpc/processor.h
+++ powerpc.git/include/asm-powerpc/processor.h
@@ -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)	((tsk)->thread.regs)
+
 unsigned long get_wchan(struct task_struct *p);
 
 #define KSTK_EIP(tsk)  ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)




More information about the Linuxppc-dev mailing list