ptrace.h 622 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __ASM_ARM_PTRACE_H
  2. #define __ASM_ARM_PTRACE_H
  3. #define PTRACE_GETREGS 12
  4. #define PTRACE_SETREGS 13
  5. #define PTRACE_GETFPREGS 14
  6. #define PTRACE_SETFPREGS 15
  7. #define PTRACE_SETOPTIONS 21
  8. /* options set using PTRACE_SETOPTIONS */
  9. #define PTRACE_O_TRACESYSGOOD 0x00000001
  10. #include <asm/proc-armv/ptrace.h>
  11. #ifndef __ASSEMBLY__
  12. #define pc_pointer(v) \
  13. ((v) & ~PCMASK)
  14. #define instruction_pointer(regs) \
  15. (pc_pointer((regs)->ARM_pc))
  16. #ifdef __KERNEL__
  17. extern void show_regs(struct pt_regs *);
  18. #define predicate(x) (x & 0xf0000000)
  19. #define PREDICATE_ALWAYS 0xe0000000
  20. #endif
  21. #endif /* __ASSEMBLY__ */
  22. #endif