reg.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* Copyright (C) 1998-2017 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. #ifdef __mcoldfire__
  59. PT_FP0 = 21,
  60. PT_FP1 = 23,
  61. PT_FP2 = 25,
  62. PT_FP3 = 27,
  63. PT_FP4 = 29,
  64. PT_FP5 = 31,
  65. PT_FP6 = 33,
  66. PT_FP7 = 35,
  67. #else
  68. PT_FP0 = 21,
  69. PT_FP1 = 24,
  70. PT_FP2 = 27,
  71. PT_FP3 = 30,
  72. PT_FP4 = 33,
  73. PT_FP5 = 36,
  74. PT_FP6 = 39,
  75. PT_FP7 = 42,
  76. #endif
  77. #define PT_FP0 PT_FP0
  78. #define PT_FP1 PT_FP1
  79. #define PT_FP2 PT_FP2
  80. #define PT_FP3 PT_FP3
  81. #define PT_FP4 PT_FP4
  82. #define PT_FP5 PT_FP5
  83. #define PT_FP6 PT_FP6
  84. #define PT_FP7 PT_FP7
  85. PT_FPCR = 45,
  86. #define PT_FPCR PT_FPCR
  87. PT_FPSR = 46,
  88. #define PT_FPSR PT_FPSR
  89. PT_FPIAR = 47
  90. #define PT_FPIAR PT_FPIAR
  91. };
  92. #endif /* _SYS_REG_H */