summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/ptrace.h')
-rw-r--r--arch/microblaze/include/asm/ptrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/ptrace.h b/arch/microblaze/include/asm/ptrace.h
index 816bee64b196..94e92c805859 100644
--- a/arch/microblaze/include/asm/ptrace.h
+++ b/arch/microblaze/include/asm/ptrace.h
@@ -61,6 +61,11 @@ struct pt_regs {
#define instruction_pointer(regs) ((regs)->pc)
#define profile_pc(regs) instruction_pointer(regs)
+static inline long regs_return_value(struct pt_regs *regs)
+{
+ return regs->r3;
+}
+
#else /* __KERNEL__ */
/* pt_regs offsets used by gdbserver etc in ptrace syscalls */