ptrace_32.h 795 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __SYSDEP_I386_PTRACE_H
  6. #define __SYSDEP_I386_PTRACE_H
  7. #define MAX_FP_NR HOST_FPX_SIZE
  8. static inline void update_debugregs(int seq) {}
  9. /* syscall emulation path in ptrace */
  10. #ifndef PTRACE_SYSEMU
  11. #define PTRACE_SYSEMU 31
  12. #endif
  13. void set_using_sysemu(int value);
  14. int get_using_sysemu(void);
  15. extern int sysemu_supported;
  16. #ifndef PTRACE_SYSEMU_SINGLESTEP
  17. #define PTRACE_SYSEMU_SINGLESTEP 32
  18. #endif
  19. #define UPT_SYSCALL_ARG1(r) UPT_BX(r)
  20. #define UPT_SYSCALL_ARG2(r) UPT_CX(r)
  21. #define UPT_SYSCALL_ARG3(r) UPT_DX(r)
  22. #define UPT_SYSCALL_ARG4(r) UPT_SI(r)
  23. #define UPT_SYSCALL_ARG5(r) UPT_DI(r)
  24. #define UPT_SYSCALL_ARG6(r) UPT_BP(r)
  25. extern void arch_init_registers(int pid);
  26. #endif