diff options
author | Helge Deller <deller@gmx.de> | 2018-06-28 22:47:11 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-08-13 09:30:50 +0200 |
commit | 75ebedf1d26376cafad87b43196c15161463b82a (patch) | |
tree | b10ea241807a90fcfb2602907bb01ede817eb7ee /arch/parisc/include/asm | |
parent | 93cb8e20d56be40c541475f77b5f565fbb385a4b (diff) |
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')
-rw-r--r-- | arch/parisc/include/asm/ptrace.h | 11 |
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 |