public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH -tip 5/9] s390: 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: Martin Schwidefsky, Ingo Molnar
  Cc: Ananth N Mavinakayanahalli, systemtap-ml, LKML, Steven Rostedt

Add kernel_trap_sp() on s390 (and cleanup a bit), based on systemtap's
runtime/regs.h.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
 arch/s390/include/asm/ptrace.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h
index 8920025..304b413 100644
--- a/arch/s390/include/asm/ptrace.h
+++ b/arch/s390/include/asm/ptrace.h
@@ -491,8 +491,9 @@ extern void user_disable_single_step(struct task_struct *);

 #define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
 #define instruction_pointer(regs) ((regs)->psw.addr & PSW_ADDR_INSN)
-#define user_stack_pointer(regs)((regs)->gprs[15])
-#define regs_return_value(regs)((regs)->gprs[2])
+#define user_stack_pointer(regs) ((regs)->gprs[15])
+#define kernel_trap_sp(regs) (user_stack_pointer(regs))
+#define regs_return_value(regs) ((regs)->gprs[2])
 #define profile_pc(regs) instruction_pointer(regs)
 extern void show_regs(struct pt_regs * regs);
 #endif /* __KERNEL__ */
-- 
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:11 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 5/9] s390: 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