[<prev] [next>] [day] [month] [year] [list]
Message-ID: <49C2B4CC.7030106@redhat.com>
Date:	Thu, 19 Mar 2009 17:10:36 -0400
From:	Masami Hiramatsu <mhiramat@...hat.com>
To:	Russell King <rmk+kernel@....linux.org.uk>,
	Ingo Molnar <mingo@...e.hu>
CC:	Ananth N Mavinakayanahalli <ananth@...ibm.com>,
	LKML <linux-kernel@...r.kernel.org>,
	systemtap-ml <systemtap@...rces.redhat.com>,
	Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC][PATCH -tip 6/9] arm: add kernel_trap_sp()
Add kernel_trap_sp() on ARM, based on systemtap's runtime/regs.h.
Signed-off-by: Masami Hiramatsu <mhiramat@...hat.com>
Cc: Russell King <rmk+kernel@....linux.org.uk>
---
 arch/arm/include/asm/ptrace.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h
index 7319261..14e0e16 100644
--- a/arch/arm/include/asm/ptrace.h
+++ b/arch/arm/include/asm/ptrace.h
@@ -138,7 +138,8 @@ static inline int valid_user_regs(struct pt_regs *regs)
 	return 0;
 }
-#define instruction_pointer(regs)	(regs)->ARM_pc
+#define instruction_pointer(regs)	((regs)->ARM_pc)
+#define kernel_trap_sp(regs)		((regs)->ARM_sp)
 #ifdef CONFIG_SMP
 extern unsigned long profile_pc(struct pt_regs *regs);
-- 
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
 
