Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef771ad4 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: kprobes: Define regs_return_value()



Signed-off-by: default avatarDavid 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent d7674c4f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)