MIPS: kprobes: Define regs_return_value()
authorDavid Daney <[email protected]>
Tue, 3 Aug 2010 20:53:24 +0000 (13:53 -0700)
committerRalf Baechle <[email protected]>
Thu, 5 Aug 2010 12:26:28 +0000 (13:26 +0100)
Signed-off-by: David Daney <[email protected]>
To: [email protected]
To: [email protected]
To: [email protected]
To: [email protected]
To: [email protected]
Cc: [email protected],
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1529/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/include/asm/ptrace.h

index cdc6a46efd988a0b5d09bf134232ac2bf8007764..9f1b8dba2c81aa1b7dea3d5269ddcea4bb33692b 100644 (file)
@@ -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)