From: Srinivasa D S <hidden> Date: 2008-07-07 14:24:42
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 <redacted>
---
include/asm-powerpc/processor.h | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.26-rc9/include/asm-powerpc/processor.h
===================================================================
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2008-07-08 07:17:41
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 <redacted>
Looks good to me. I'll include it in the next batch.
Cheers,
Ben.
From: Paul Mackerras <hidden> Date: 2008-07-13 22:32:41
Srinivasa D S writes:
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.
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2008-07-13 22:40:17
On Mon, 2008-07-14 at 08:32 +1000, Paul Mackerras wrote:
Srinivasa D S writes:
quoted
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.
From: Srinivasa D S <hidden> Date: 2008-07-14 08:32:57
On Monday 14 July 2008 04:02:41 am Paul Mackerras wrote:
quoted
Below attached patch defines this macro for powerpc arch. Please let
me know your comments on this.
+#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs)
The cast is unnecessary since tsk->thread.regs is already a struct
pt_regs *.
True.
Also note that tsk->thread.regs will be NULL for a kernel
thread.
Yes, users of task_pt_regs will verify for NULL. Updated patch attached
below.
Signed-off-by: Srinivasa DS <redacted>
---
include/asm-powerpc/processor.h | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.26-rc9/include/asm-powerpc/processor.h
===================================================================
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2008-07-14 10:05:47
On Mon, 2008-07-14 at 14:01 +0530, Srinivasa D S wrote:
On Monday 14 July 2008 04:02:41 am Paul Mackerras wrote:
quoted
quoted
Below attached patch defines this macro for powerpc arch. Please let
me know your comments on this.
+#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs)
The cast is unnecessary since tsk->thread.regs is already a struct
pt_regs *.
True.
quoted
Also note that tsk->thread.regs will be NULL for a kernel
thread.
Yes, users of task_pt_regs will verify for NULL. Updated patch attached
below.
Signed-off-by: Srinivasa DS <redacted>
Can you send a cleanup patch against powerpc.git instead ?
Thanks !
Ben
On Tue, 2008-07-15 at 14:36 +0530, Srinivasa D S wrote:
quoted
On Monday 14 July 2008 02:36:57 pm Benjamin Herrenschmidt wrote:
quoted
quoted
Signed-off-by: Srinivasa DS <redacted>
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.
Sorry, I got it wrong, But I dont find my patch in your latest powerpc
git tree(git.kernel.org/?p=linux/kernel/git/benh/powerpc.git).
Thanks
Srinivasa DS