From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Srinivasa D S <srinivasa@in.ibm.com>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [RFC] [PATCH] task_pt_regs for powerpc systems
Date: Tue, 08 Jul 2008 16:21:36 +1000 [thread overview]
Message-ID: <1215498096.8970.209.camel@pasglop> (raw)
In-Reply-To: <200807071952.27427.srinivasa@in.ibm.com>
On Mon, 2008-07-07 at 19:52 +0530, Srinivasa D S wrote:
> 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>
Looks good to me. I'll include it in the next batch.
Cheers,
Ben.
> ---
> 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)
next prev parent reply other threads:[~2008-07-08 7:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 14:22 [RFC] [PATCH] task_pt_regs for powerpc systems Srinivasa D S
2008-07-08 6:21 ` Benjamin Herrenschmidt [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1215498096.8970.209.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=srinivasa@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).