public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64: Fix me add register r8
@ 2014-07-18  5:25 Nicholas Krause
  2014-07-20 20:49 ` Émeric MASCHINO
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Krause @ 2014-07-18  5:25 UTC (permalink / raw)
  To: tony.luck; +Cc: fenghua.yu, linux-ia64, linux-kernel

The function user_stack_pointer was not returning the correct value \
as stated by a Fix Me message before the function declaration. I
fixed the return value to add register r8 as that register stores
dirty pages.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 arch/ia64/include/asm/ptrace.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h
index 8451439..eaef692 100644
--- a/arch/ia64/include/asm/ptrace.h
+++ b/arch/ia64/include/asm/ptrace.h
@@ -53,8 +53,7 @@
 
 static inline unsigned long user_stack_pointer(struct pt_regs *regs)
 {
-	/* FIXME: should this be bspstore + nr_dirty regs? */
-	return regs->ar_bspstore;
+	return regs->ar_bspstore + regs->r8;
 }
 
 static inline int is_syscall_success(struct pt_regs *regs)
-- 
1.9.1


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

* Re: [PATCH] ia64: Fix me add register r8
  2014-07-18  5:25 [PATCH] ia64: Fix me add register r8 Nicholas Krause
@ 2014-07-20 20:49 ` Émeric MASCHINO
  2014-07-20 21:29   ` Nick Krause
  0 siblings, 1 reply; 3+ messages in thread
From: Émeric MASCHINO @ 2014-07-20 20:49 UTC (permalink / raw)
  To: Nicholas Krause
  Cc: Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org

Hi,

Well, I'm wondering why the original author of this FIXME comment
didn't fix the issue him/herself. Can you track down who added this
comment? I fear that this simple comment was actually here to point to
something more subtle...

     Émeric

2014-07-18 7:25 GMT+02:00 Nicholas Krause <xerofoify@gmail.com>:
> The function user_stack_pointer was not returning the correct value \
> as stated by a Fix Me message before the function declaration. I
> fixed the return value to add register r8 as that register stores
> dirty pages.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
>  arch/ia64/include/asm/ptrace.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h
> index 8451439..eaef692 100644
> --- a/arch/ia64/include/asm/ptrace.h
> +++ b/arch/ia64/include/asm/ptrace.h
> @@ -53,8 +53,7 @@
>
>  static inline unsigned long user_stack_pointer(struct pt_regs *regs)
>  {
> -       /* FIXME: should this be bspstore + nr_dirty regs? */
> -       return regs->ar_bspstore;
> +       return regs->ar_bspstore + regs->r8;
>  }
>
>  static inline int is_syscall_success(struct pt_regs *regs)
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ia64: Fix me add register r8
  2014-07-20 20:49 ` Émeric MASCHINO
@ 2014-07-20 21:29   ` Nick Krause
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Krause @ 2014-07-20 21:29 UTC (permalink / raw)
  To: Émeric MASCHINO
  Cc: Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Sun, Jul 20, 2014 at 4:49 PM, Émeric MASCHINO
<emeric.maschino@gmail.com> wrote:
> Hi,
>
> Well, I'm wondering why the original author of this FIXME comment
> didn't fix the issue him/herself. Can you track down who added this
> comment? I fear that this simple comment was actually here to point to
> something more subtle...
>
>      Émeric
>


 Émeric,
I ran git blame on the file and I got this name,  Shaohua Li
for the fix me and the whole function .

Nick

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

end of thread, other threads:[~2014-07-20 21:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18  5:25 [PATCH] ia64: Fix me add register r8 Nicholas Krause
2014-07-20 20:49 ` Émeric MASCHINO
2014-07-20 21:29   ` Nick Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox