[<prev] [next>] [day] [month] [year] [list]
Message-ID: <49C2B4B8.1020507@redhat.com>
Date: Thu, 19 Mar 2009 17:10:16 -0400
From: Masami Hiramatsu <mhiramat@...hat.com>
To: "Luck, Tony" <tony.luck@...el.com>, Ingo Molnar <mingo@...e.hu>
CC: LKML <linux-kernel@...r.kernel.org>,
systemtap-ml <systemtap@...rces.redhat.com>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Steven Rostedt <rostedt@...dmis.org>,
ia64 <linux-ia64@...r.kernel.org>
Subject: [RFC][PATCH -tip 3/9] ia64: add kernel_trap_sp()
Add kernel_trap_sp() on ia64, based on systemtap's runtime/regs.h.
Signed-off-by: Masami Hiramatsu <mhiramat@...hat.com>
Cc: Tony Luck <tony.luck@...el.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@...hat.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists