reg.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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, write to the Free
  13. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14. 02111-1307 USA. */
  15. #ifndef _SYS_REG_H
  16. #define _SYS_REG_H 1
  17. /* Index into an array of 4 byte integers returned from ptrace for
  18. location of the users' stored general purpose registers. */
  19. enum
  20. {
  21. PT_IPEND = 0,
  22. #define PT_IPEND PT_IPEND
  23. PT_SYSCFG = 4,
  24. #define PT_SYSCFG PT_SYSCFG
  25. PT_SR = 8,
  26. #define PT_SR PT_SR
  27. PT_RETE = 12,
  28. #define PT_RETE PT_RETE
  29. PT_RETN = 16,
  30. #define PT_RETN PT_RETN
  31. PT_RETX = 20,
  32. #define PT_RETX PT_RETX
  33. PT_PC = 24,
  34. #define PT_PC PT_PC
  35. PT_RETS = 28,
  36. #define PT_RETS PT_RETS
  37. PT_ASTAT = 32,
  38. #define PT_ASTAT PT_ASTAT
  39. PT_LB1 = 40,
  40. #define PT_LB1 PT_LB1
  41. PT_LB0 = 44,
  42. #define PT_LB0 PT_LB0
  43. PT_LT1 = 48,
  44. #define PT_LT1 PT_LT1
  45. PT_LT0 = 52,
  46. #define PT_LT0 PT_LT0
  47. PT_LC1 = 56,
  48. #define PT_LC1 PT_LC1
  49. PT_LC0 = 60,
  50. #define PT_LC0 PT_LC0
  51. PT_A1W = 64,
  52. #define PT_A1W PT_A1W
  53. PT_A1X = 68,
  54. #define PT_A1X PT_A1X
  55. PT_A0W = 72,
  56. #define PT_A0W PT_A0W
  57. PT_A0X = 76,
  58. #define PT_A0X PT_A0X
  59. PT_B3 = 80,
  60. #define PT_B# PT_B3
  61. PT_B2 = 84,
  62. #define PT_B2 PT_B2
  63. PT_B1 = 88,
  64. #define PT_B1 PT_B1
  65. PT_B0 = 92,
  66. #define PT_B0 PT_B0
  67. PT_L3 = 96,
  68. #define PT_L3 PT_L3
  69. PT_L2 = 100,
  70. #define PT_L2 PT_L2
  71. PT_L1 = 104,
  72. #define PT_L1 PT_L1
  73. PT_L0 = 108,
  74. #define PT_L0 PT_L0
  75. PT_M3 = 112,
  76. #define PT_M3 PT_M3
  77. PT_M2 = 116,
  78. #define PT_M2 PT_M2
  79. PT_M1 = 120,
  80. #define PT_M1 PT_M1
  81. PT_M0 = 124,
  82. #define PT_M0 PT_M0
  83. PT_I3 = 128,
  84. #define PT_I3 PT_I3
  85. PT_I2 = 132,
  86. #define PT_I2 PT_I2
  87. PT_I1 = 136,
  88. #define PT_I1 PT_I1
  89. PT_I0 = 140,
  90. #define PT_I0 PT_I0
  91. PT_USP = 144,
  92. #define PT_USP PT_USP
  93. PT_FP = 148,
  94. #define PT_FP PT_FP
  95. PT_P5 = 152,
  96. #define PT_P5 PT_P5
  97. PT_P4 = 156,
  98. #define PT_P4 PT_P4
  99. PT_P3 = 160,
  100. #define PT_P3 PT_P3
  101. PT_P2 = 164,
  102. #define PT_P2 PT_P2
  103. PT_P1 = 168,
  104. #define PT_P1 PT_P1
  105. PT_P0 = 172,
  106. #define PT_P0 PT_P0
  107. PT_R7 = 176,
  108. #define PT_R7 PT_R7
  109. PT_R6 = 180,
  110. #define PT_R6 PT_R6
  111. PT_R5 = 184,
  112. #define PT_R5 PT_R5
  113. PT_R4 = 188,
  114. #define PT_R4 PT_R4
  115. PT_R3 = 192,
  116. #define PT_R3 PT_R3
  117. PT_R2 = 196,
  118. #define PT_R2 PT_R2
  119. PT_R1 = 200,
  120. #define PT_R1 PT_R1
  121. PT_R0 = 204,
  122. #define PT_R0 PT_R0
  123. PT_ORIG_R0 = 208,
  124. #define PT_ORIG_R0 PT_ORIG_R0
  125. };
  126. #endif /* _SYS_REG_H */