Go to the documentation of this file. 1 #ifndef _ASM_M32R_PTRACE_H
2 #define _ASM_M32R_PTRACE_H
57 #define SPR_CR0 PT_PSW
58 #define SPR_CR1 PT_CBR
59 #define SPR_CR2 PT_SPI
60 #define SPR_CR3 PT_SPU
62 #define SPR_CR5 PT_EVB
63 #define SPR_CR6 PT_BPC
65 #define SPR_CR8 PT_BBPSW
70 #define SPR_CR13 PT_WR
71 #define SPR_CR14 PT_BBPC
111 #define PTRACE_GETREGS 12
112 #define PTRACE_SETREGS 13
114 #define PTRACE_OLDSETOPTIONS 21
120 #define arch_has_single_step() (1)
124 #define arch_ptrace_attach(child) \
125 init_debug_traps(child)
127 #if defined(CONFIG_ISA_M32R2) || defined(CONFIG_CHIP_VDEC2)
128 #define user_mode(regs) ((M32R_PSW_BPM & (regs)->psw) != 0)
129 #elif defined(CONFIG_ISA_M32R)
130 #define user_mode(regs) ((M32R_PSW_BSM & (regs)->psw) != 0)
132 #error unknown isa configuration
135 #define instruction_pointer(regs) ((regs)->bpc)
136 #define profile_pc(regs) instruction_pointer(regs)
140 #define task_pt_regs(task) \
141 ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)