summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/ChangeLog6
-rw-r--r--runtime/uprobes/uprobes_s390.h12
2 files changed, 18 insertions, 0 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index e4ea3330..5958bec8 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-04 David Smith <dsmith@redhat.com>
+
+ From Jim Keniston, PR 5274.
+ * uprobes/uprobes_s390.h (arch_get_cur_sp): New function.
+ (arch_predict_sp_at_ret): Ditto.
+
2008-11-04 Frank Ch. Eigler <fche@elastic.org>
From Masami Hiramatsu <mhiramat@redhat.com>, PR 6028.
diff --git a/runtime/uprobes/uprobes_s390.h b/runtime/uprobes/uprobes_s390.h
index 5c711275..47587dab 100644
--- a/runtime/uprobes/uprobes_s390.h
+++ b/runtime/uprobes/uprobes_s390.h
@@ -85,5 +85,17 @@ static inline void arch_restore_uret_addr(unsigned long ret_addr,
static unsigned long arch_hijack_uret_addr(unsigned long trampoline_addr,
struct pt_regs *regs, struct uprobe_task *utask);
+static inline unsigned long arch_get_cur_sp(struct pt_regs *regs)
+{
+ return regs->gprs[15];
+}
+
+/* The stack pointer is the same upon return as it is upon function entry. */
+static inline unsigned long arch_predict_sp_at_ret(struct pt_regs *regs,
+ struct task_struct *tsk)
+{
+ return regs->gprs[15];
+}
+
#endif /* CONFIG_URETPROBES */
#endif /* _ASM_UPROBES_H */