Go to the documentation of this file.
9 #ifndef _ASM_MICROBLAZE_PTRACE_H
10 #define _ASM_MICROBLAZE_PTRACE_H
58 #define kernel_mode(regs) ((regs)->pt_mode)
59 #define user_mode(regs) (!kernel_mode(regs))
61 #define instruction_pointer(regs) ((regs)->pc)
62 #define profile_pc(regs) instruction_pointer(regs)
64 static inline long regs_return_value(
struct pt_regs *
regs)
72 #define PT_GPR(n) ((n) * sizeof(microblaze_reg_t))
73 #define PT_PC (32 * sizeof(microblaze_reg_t))
74 #define PT_MSR (33 * sizeof(microblaze_reg_t))
75 #define PT_EAR (34 * sizeof(microblaze_reg_t))
76 #define PT_ESR (35 * sizeof(microblaze_reg_t))
77 #define PT_FSR (36 * sizeof(microblaze_reg_t))
78 #define PT_KERNEL_MODE (37 * sizeof(microblaze_reg_t))