Go to the documentation of this file.
12 #ifndef __UNICORE_PTRACE_H__
13 #define __UNICORE_PTRACE_H__
15 #include <uapi/asm/ptrace.h>
19 #define user_mode(regs) \
20 (processor_mode(regs) == USER_MODE)
22 #define processor_mode(regs) \
23 ((regs)->UCreg_asr & MODE_MASK)
25 #define interrupts_enabled(regs) \
26 (!((regs)->UCreg_asr & PSR_I_BIT))
28 #define fast_interrupts_enabled(regs) \
29 (!((regs)->UCreg_asr & PSR_R_BIT))
34 static inline int valid_user_regs(
struct pt_regs *
regs)
56 #define instruction_pointer(regs) ((regs)->UCreg_pc)