[RFC] [PATCH] task_pt_regs for powerpc systems
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Jul 15 19:15:57 EST 2008
On Tue, 2008-07-15 at 14:36 +0530, Srinivasa D S wrote:
> 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.
Nah, your initial patch is there already :-) I'm just asking for a
cleanup one that removes the useless cast.
Cheers,
Ben.
>
> 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