summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-08-03 13:53:24 -0700
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 13:26:28 +0100
commitef771ad4ad59c88ffd1e313aa9e943751f83d3a2 (patch)
tree892db34d7eeadedfe823ea6ff479f64033aa5431 /arch
parentd7674c4f5899712a262d4946ca6edaa947148f52 (diff)
downloadlinux-3.10-ef771ad4ad59c88ffd1e313aa9e943751f83d3a2.tar.gz
linux-3.10-ef771ad4ad59c88ffd1e313aa9e943751f83d3a2.tar.bz2
linux-3.10-ef771ad4ad59c88ffd1e313aa9e943751f83d3a2.zip
MIPS: kprobes: Define regs_return_value()
Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org To: ananth@in.ibm.com To: anil.s.keshavamurthy@intel.com To: davem@davemloft.net To: masami.hiramatsu.pt@hitachi.com Cc: linux-kernel@vger.kernel.org, Cc: hschauhan@nulltrace.org Patchwork: https://patchwork.linux-mips.org/patch/1529/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/ptrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h
index cdc6a46efd9..9f1b8dba2c8 100644
--- a/arch/mips/include/asm/ptrace.h
+++ b/arch/mips/include/asm/ptrace.h
@@ -137,6 +137,7 @@ extern int ptrace_set_watch_regs(struct task_struct *child,
*/
#define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER)
+#define regs_return_value(_regs) ((_regs)->regs[2])
#define instruction_pointer(regs) ((regs)->cp0_epc)
#define profile_pc(regs) instruction_pointer(regs)