ptrace-ppc32.h 793 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Coproration
  3. * Extracted from ptrace.c and ptrace32.c
  4. *
  5. * This file is subject to the terms and conditions of the GNU General
  6. * Public License. See the file README.legal in the main directory of
  7. * this archive for more details.
  8. */
  9. #ifndef _POWERPC_PTRACE_PPC32_H
  10. #define _POWERPC_PTRACE_PPC32_H
  11. /*
  12. * Set of msr bits that gdb can change on behalf of a process.
  13. */
  14. #if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
  15. #define MSR_DEBUGCHANGE 0
  16. #else
  17. #define MSR_DEBUGCHANGE (MSR_SE | MSR_BE)
  18. #endif
  19. /*
  20. * Max register writeable via put_reg
  21. */
  22. #define PT_MAX_PUT_REG PT_MQ
  23. /*
  24. * Munging of MSR on return from get_regs
  25. *
  26. * Nothing to do on ppc32
  27. */
  28. #define PT_MUNGE_MSR(msr, task) (msr)
  29. #endif /* _POWERPC_PTRACE_PPC32_H */