summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2018-06-28 22:47:11 +0200
committerHelge Deller <deller@gmx.de>2018-08-13 09:30:50 +0200
commit75ebedf1d26376cafad87b43196c15161463b82a (patch)
treeb10ea241807a90fcfb2602907bb01ede817eb7ee /arch/parisc/include/asm/ptrace.h
parent93cb8e20d56be40c541475f77b5f565fbb385a4b (diff)
downloadlinux-75ebedf1d26376cafad87b43196c15161463b82a.tar.bz2
parisc: Add HAVE_REGS_AND_STACK_ACCESS_API feature
Some parts of the HAVE_REGS_AND_STACK_ACCESS_API feature is needed for the rseq syscall. This patch adds the most important parts, and as long as we don't support kprobes, we should be fine. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/ptrace.h')
-rw-r--r--arch/parisc/include/asm/ptrace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/ptrace.h b/arch/parisc/include/asm/ptrace.h
index 46da07670c2b..2a27b275ab09 100644
--- a/arch/parisc/include/asm/ptrace.h
+++ b/arch/parisc/include/asm/ptrace.h
@@ -25,4 +25,15 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
return regs->gr[20];
}
+static inline void instruction_pointer_set(struct pt_regs *regs,
+ unsigned long val)
+{
+ regs->iaoq[0] = val;
+}
+
+/* Query offset/name of register from its name/offset */
+extern int regs_query_register_offset(const char *name);
+extern const char *regs_query_register_name(unsigned int offset);
+#define MAX_REG_OFFSET (offsetof(struct pt_regs, ipsw))
+
#endif