Go to the documentation of this file.
13 #include <linux/compiler.h>
14 #include <linux/linkage.h>
15 #include <linux/types.h>
17 #include <uapi/asm/ptrace.h>
35 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER)
39 return !regs->
regs[7];
42 static inline long regs_return_value(
struct pt_regs *
regs)
47 return -regs->
regs[2];
50 #define instruction_pointer(regs) ((regs)->cp0_epc)
51 #define profile_pc(regs) instruction_pointer(regs)