summaryrefslogtreecommitdiffstats
path: root/arch/arc/include
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2021-09-14 16:41:41 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-01 03:24:07 +0200
commitbb6121b11c22912ae558f853036f8ac37eb45973 (patch)
treecd13ae654f8da5805dffb5e6c90f9548f7e0386d /arch/arc/include
parentx86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline() (diff)
downloadlinux-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.h5
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 */