reg.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Copyright (C) 1998 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _SYS_REG_H
  15. #define _SYS_REG_H 1
  16. /* Index into an array of 4 byte integers returned from ptrace for
  17. location of the users' stored general purpose registers. */
  18. enum
  19. {
  20. PT_D1 = 0,
  21. #define PT_D1 PT_D1
  22. PT_D2 = 1,
  23. #define PT_D2 PT_D2
  24. PT_D3 = 2,
  25. #define PT_D3 PT_D3
  26. PT_D4 = 3,
  27. #define PT_D4 PT_D4
  28. PT_D5 = 4,
  29. #define PT_D5 PT_D5
  30. PT_D6 = 5,
  31. #define PT_D6 PT_D6
  32. PT_D7 = 6,
  33. #define PT_D7 PT_D7
  34. PT_A0 = 7,
  35. #define PT_A0 PT_A0
  36. PT_A1 = 8,
  37. #define PT_A1 PT_A1
  38. PT_A2 = 9,
  39. #define PT_A2 PT_A2
  40. PT_A3 = 10,
  41. #define PT_A3 PT_A3
  42. PT_A4 = 11,
  43. #define PT_A4 PT_A4
  44. PT_A5 = 12,
  45. #define PT_A5 PT_A5
  46. PT_A6 = 13,
  47. #define PT_A6 PT_A6
  48. PT_D0 = 14,
  49. #define PT_D0 PT_D0
  50. PT_USP = 15,
  51. #define PT_USP PT_USP
  52. PT_ORIG_D0 = 16,
  53. #define PT_ORIG_D0 PT_ORIG_D0
  54. PT_SR = 17,
  55. #define PT_SR PT_SR
  56. PT_PC = 18,
  57. #define PT_PC PT_PC
  58. PT_FP0 = 21,
  59. #define PT_FP0 PT_FP0
  60. PT_FP1 = 24,
  61. #define PT_FP1 PT_FP1
  62. PT_FP2 = 27,
  63. #define PT_FP2 PT_FP2
  64. PT_FP3 = 30,
  65. #define PT_FP3 PT_FP3
  66. PT_FP4 = 33,
  67. #define PT_FP4 PT_FP4
  68. PT_FP5 = 36,
  69. #define PT_FP5 PT_FP5
  70. PT_FP6 = 39,
  71. #define PT_FP6 PT_FP6
  72. PT_FP7 = 42,
  73. #define PT_FP7 PT_FP7
  74. PT_FPCR = 45,
  75. #define PT_FPCR PT_FPCR
  76. PT_FPSR = 46,
  77. #define PT_FPSR PT_FPSR
  78. PT_FPIAR = 47
  79. #define PT_FPIAR PT_FPIAR
  80. };
  81. #endif /* _SYS_REG_H */