ptrace_64.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2003 PathScale, Inc.
  3. *
  4. * Licensed under the GPL
  5. */
  6. #ifndef __UM_PTRACE_X86_64_H
  7. #define __UM_PTRACE_X86_64_H
  8. #include "linux/compiler.h"
  9. #include "asm/errno.h"
  10. #define __FRAME_OFFSETS /* Needed to get the R* macros */
  11. #include "asm/ptrace-generic.h"
  12. #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64
  13. #define PT_REGS_R8(r) UPT_R8(&(r)->regs)
  14. #define PT_REGS_R9(r) UPT_R9(&(r)->regs)
  15. #define PT_REGS_R10(r) UPT_R10(&(r)->regs)
  16. #define PT_REGS_R11(r) UPT_R11(&(r)->regs)
  17. #define PT_REGS_R12(r) UPT_R12(&(r)->regs)
  18. #define PT_REGS_R13(r) UPT_R13(&(r)->regs)
  19. #define PT_REGS_R14(r) UPT_R14(&(r)->regs)
  20. #define PT_REGS_R15(r) UPT_R15(&(r)->regs)
  21. /* XXX */
  22. #define user_mode(r) UPT_IS_USER(&(r)->regs)
  23. struct user_desc;
  24. static inline int ptrace_get_thread_area(struct task_struct *child, int idx,
  25. struct user_desc __user *user_desc)
  26. {
  27. return -ENOSYS;
  28. }
  29. static inline int ptrace_set_thread_area(struct task_struct *child, int idx,
  30. struct user_desc __user *user_desc)
  31. {
  32. return -ENOSYS;
  33. }
  34. extern long arch_prctl(struct task_struct *task, int code,
  35. unsigned long __user *addr);
  36. #endif