ptrace.h 998 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2004, 2006, 2009, 2010 Texas Instruments Incorporated
  3. * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
  4. *
  5. * Updated for 2.6.34: Mark Salter <msalter@redhat.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef _ASM_C6X_PTRACE_H
  12. #define _ASM_C6X_PTRACE_H
  13. #include <uapi/asm/ptrace.h>
  14. #ifndef __ASSEMBLY__
  15. #ifdef _BIG_ENDIAN
  16. #else
  17. #endif
  18. #include <linux/linkage.h>
  19. #define user_mode(regs) ((((regs)->tsr) & 0x40) != 0)
  20. #define instruction_pointer(regs) ((regs)->pc)
  21. #define profile_pc(regs) instruction_pointer(regs)
  22. #define user_stack_pointer(regs) ((regs)->sp)
  23. extern void show_regs(struct pt_regs *);
  24. extern asmlinkage unsigned long syscall_trace_entry(struct pt_regs *regs);
  25. extern asmlinkage void syscall_trace_exit(struct pt_regs *regs);
  26. #endif /* __ASSEMBLY__ */
  27. #endif /* _ASM_C6X_PTRACE_H */