Skip to contentSkip to conversation

arm: add kernel_trap_sp()

RFC PATCH Superseded Masami Hiramatsu 1 participant 1 message Mar 19, 2009

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 6/9 arm: add kernel_trap_sp()

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

---
 arch/arm/include/asm/ptrace.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/include/asm/ptrace.h +2 -1
index 7319261..14e0e16 100644
@@ -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);
Signature · 7 lines
Masami Hiramatsu

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

e-mail: [email protected]