mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
MIPS: kprobes: Define regs_return_value()
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]>
This commit is contained in:
parent
d7674c4f58
commit
ef771ad4ad
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue