public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH -tip 3/9] ia64: add kernel_trap_sp()
@ 2009-03-19 21:10 Masami Hiramatsu
  0 siblings, 0 replies; only message in thread
From: Masami Hiramatsu @ 2009-03-19 21:10 UTC (permalink / raw)
  To: Luck, Tony, Ingo Molnar
  Cc: LKML, systemtap-ml, Ananth N Mavinakayanahalli, Steven Rostedt,
	ia64

Add kernel_trap_sp() on ia64, based on systemtap's runtime/regs.h.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Tony Luck <tony.luck@intel.com>
---
 arch/ia64/include/asm/ptrace.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h
index 14055c6..3a7dfcb 100644
--- a/arch/ia64/include/asm/ptrace.h
+++ b/arch/ia64/include/asm/ptrace.h
@@ -246,6 +246,12 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs)
 	return regs->ar_bspstore;
 }

+static inline unsigned long kernel_trap_sp(struct pt_regs *regs)
+{
+	/* interrupted task's memory stack pointer is r12 */
+	return regs->r12;
+}
+
 #define regs_return_value(regs) ((regs)->r8)

 /* Conserve space in histogram by encoding slot bits in address
-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-19 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 21:10 [RFC][PATCH -tip 3/9] ia64: add kernel_trap_sp() Masami Hiramatsu

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