diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2021-09-14 16:41:41 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-01 03:24:07 +0200 |
commit | bb6121b11c22912ae558f853036f8ac37eb45973 (patch) | |
tree | cd13ae654f8da5805dffb5e6c90f9548f7e0386d /arch/arc/include | |
parent | x86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline() (diff) | |
download | linux-bb6121b11c22912ae558f853036f8ac37eb45973.tar.xz linux-bb6121b11c22912ae558f853036f8ac37eb45973.zip |
ARC: Add instruction_pointer_set() API
Add instruction_pointer_set() API for arc.
Link: https://lkml.kernel.org/r/163163050148.489837.15187799269793560256.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/ptrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arc/include/asm/ptrace.h b/arch/arc/include/asm/ptrace.h index 4c3c9be5bd16..cca8d6583e31 100644 --- a/arch/arc/include/asm/ptrace.h +++ b/arch/arc/include/asm/ptrace.h @@ -149,6 +149,11 @@ static inline long regs_return_value(struct pt_regs *regs) return (long)regs->r0; } +static inline void instruction_pointer_set(struct pt_regs *regs, + unsigned long val) +{ + instruction_pointer(regs) = val; +} #endif /* !__ASSEMBLY__ */ #endif /* __ASM_PTRACE_H */ |