|
@@ -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 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 instruction_pointer(regs) ((regs)->cp0_epc)
|
|
#define profile_pc(regs) instruction_pointer(regs)
|
|
#define profile_pc(regs) instruction_pointer(regs)
|
|
|
|
|