Go to the documentation of this file. 1 #ifndef _ASM_SCORE_PTRACE_H
2 #define _ASM_SCORE_PTRACE_H
4 #define PTRACE_GETREGS 12
5 #define PTRACE_SETREGS 13
18 #define SINGLESTEP16_INSN 0x7006
19 #define SINGLESTEP32_INSN 0x840C8000
20 #define BREAKPOINT16_INSN 0x7002
21 #define BREAKPOINT32_INSN 0x84048000
24 #define INSN32_MASK 0x80008000
26 #define J32 0x88008000
27 #define J32M 0xFC008000
29 #define B32 0x90008000
30 #define B32M 0xFC008000
31 #define BL32 0x90008001
33 #define BR32 0x80008008
34 #define BR32M 0xFFE0807E
35 #define BRL32 0x80008009
38 #define B32_SET (J32 | B32 | BL32 | BR32 | BRL32)
46 #define B16_SET (J16 | B16 | BR16)
54 unsigned long pad0[6];
59 unsigned long regs[32];
82 #define user_mode(regs) ((regs->cp0_psr & 8) == 8)
84 #define instruction_pointer(regs) ((unsigned long)(regs)->cp0_epc)
85 #define profile_pc(regs) instruction_pointer(regs)
92 #define arch_has_single_step() (1)