ptrace_offsets.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_IA64_PTRACE_OFFSETS_H
  3. #define _ASM_IA64_PTRACE_OFFSETS_H
  4. /*
  5. * Copyright (C) 1999, 2003 Hewlett-Packard Co
  6. * David Mosberger-Tang <davidm@hpl.hp.com>
  7. */
  8. /*
  9. * The "uarea" that can be accessed via PEEKUSER and POKEUSER is a
  10. * virtual structure that would have the following definition:
  11. *
  12. * struct uarea {
  13. * struct ia64_fpreg fph[96]; // f32-f127
  14. * unsigned long nat_bits;
  15. * unsigned long empty1;
  16. * struct ia64_fpreg f2; // f2-f5
  17. * :
  18. * struct ia64_fpreg f5;
  19. * struct ia64_fpreg f10; // f10-f31
  20. * :
  21. * struct ia64_fpreg f31;
  22. * unsigned long r4; // r4-r7
  23. * :
  24. * unsigned long r7;
  25. * unsigned long b1; // b1-b5
  26. * :
  27. * unsigned long b5;
  28. * unsigned long ar_ec;
  29. * unsigned long ar_lc;
  30. * unsigned long empty2[5];
  31. * unsigned long cr_ipsr;
  32. * unsigned long cr_iip;
  33. * unsigned long cfm;
  34. * unsigned long ar_unat;
  35. * unsigned long ar_pfs;
  36. * unsigned long ar_rsc;
  37. * unsigned long ar_rnat;
  38. * unsigned long ar_bspstore;
  39. * unsigned long pr;
  40. * unsigned long b6;
  41. * unsigned long ar_bsp;
  42. * unsigned long r1;
  43. * unsigned long r2;
  44. * unsigned long r3;
  45. * unsigned long r12;
  46. * unsigned long r13;
  47. * unsigned long r14;
  48. * unsigned long r15;
  49. * unsigned long r8;
  50. * unsigned long r9;
  51. * unsigned long r10;
  52. * unsigned long r11;
  53. * unsigned long r16;
  54. * :
  55. * unsigned long r31;
  56. * unsigned long ar_ccv;
  57. * unsigned long ar_fpsr;
  58. * unsigned long b0;
  59. * unsigned long b7;
  60. * unsigned long f6;
  61. * unsigned long f7;
  62. * unsigned long f8;
  63. * unsigned long f9;
  64. * unsigned long ar_csd;
  65. * unsigned long ar_ssd;
  66. * unsigned long rsvd1[710];
  67. * unsigned long dbr[8];
  68. * unsigned long rsvd2[504];
  69. * unsigned long ibr[8];
  70. * unsigned long rsvd3[504];
  71. * unsigned long pmd[4];
  72. * }
  73. */
  74. /* fph: */
  75. #define PT_F32 0x0000
  76. #define PT_F33 0x0010
  77. #define PT_F34 0x0020
  78. #define PT_F35 0x0030
  79. #define PT_F36 0x0040
  80. #define PT_F37 0x0050
  81. #define PT_F38 0x0060
  82. #define PT_F39 0x0070
  83. #define PT_F40 0x0080
  84. #define PT_F41 0x0090
  85. #define PT_F42 0x00a0
  86. #define PT_F43 0x00b0
  87. #define PT_F44 0x00c0
  88. #define PT_F45 0x00d0
  89. #define PT_F46 0x00e0
  90. #define PT_F47 0x00f0
  91. #define PT_F48 0x0100
  92. #define PT_F49 0x0110
  93. #define PT_F50 0x0120
  94. #define PT_F51 0x0130
  95. #define PT_F52 0x0140
  96. #define PT_F53 0x0150
  97. #define PT_F54 0x0160
  98. #define PT_F55 0x0170
  99. #define PT_F56 0x0180
  100. #define PT_F57 0x0190
  101. #define PT_F58 0x01a0
  102. #define PT_F59 0x01b0
  103. #define PT_F60 0x01c0
  104. #define PT_F61 0x01d0
  105. #define PT_F62 0x01e0
  106. #define PT_F63 0x01f0
  107. #define PT_F64 0x0200
  108. #define PT_F65 0x0210
  109. #define PT_F66 0x0220
  110. #define PT_F67 0x0230
  111. #define PT_F68 0x0240
  112. #define PT_F69 0x0250
  113. #define PT_F70 0x0260
  114. #define PT_F71 0x0270
  115. #define PT_F72 0x0280
  116. #define PT_F73 0x0290
  117. #define PT_F74 0x02a0
  118. #define PT_F75 0x02b0
  119. #define PT_F76 0x02c0
  120. #define PT_F77 0x02d0
  121. #define PT_F78 0x02e0
  122. #define PT_F79 0x02f0
  123. #define PT_F80 0x0300
  124. #define PT_F81 0x0310
  125. #define PT_F82 0x0320
  126. #define PT_F83 0x0330
  127. #define PT_F84 0x0340
  128. #define PT_F85 0x0350
  129. #define PT_F86 0x0360
  130. #define PT_F87 0x0370
  131. #define PT_F88 0x0380
  132. #define PT_F89 0x0390
  133. #define PT_F90 0x03a0
  134. #define PT_F91 0x03b0
  135. #define PT_F92 0x03c0
  136. #define PT_F93 0x03d0
  137. #define PT_F94 0x03e0
  138. #define PT_F95 0x03f0
  139. #define PT_F96 0x0400
  140. #define PT_F97 0x0410
  141. #define PT_F98 0x0420
  142. #define PT_F99 0x0430
  143. #define PT_F100 0x0440
  144. #define PT_F101 0x0450
  145. #define PT_F102 0x0460
  146. #define PT_F103 0x0470
  147. #define PT_F104 0x0480
  148. #define PT_F105 0x0490
  149. #define PT_F106 0x04a0
  150. #define PT_F107 0x04b0
  151. #define PT_F108 0x04c0
  152. #define PT_F109 0x04d0
  153. #define PT_F110 0x04e0
  154. #define PT_F111 0x04f0
  155. #define PT_F112 0x0500
  156. #define PT_F113 0x0510
  157. #define PT_F114 0x0520
  158. #define PT_F115 0x0530
  159. #define PT_F116 0x0540
  160. #define PT_F117 0x0550
  161. #define PT_F118 0x0560
  162. #define PT_F119 0x0570
  163. #define PT_F120 0x0580
  164. #define PT_F121 0x0590
  165. #define PT_F122 0x05a0
  166. #define PT_F123 0x05b0
  167. #define PT_F124 0x05c0
  168. #define PT_F125 0x05d0
  169. #define PT_F126 0x05e0
  170. #define PT_F127 0x05f0
  171. #define PT_NAT_BITS 0x0600
  172. #define PT_F2 0x0610
  173. #define PT_F3 0x0620
  174. #define PT_F4 0x0630
  175. #define PT_F5 0x0640
  176. #define PT_F10 0x0650
  177. #define PT_F11 0x0660
  178. #define PT_F12 0x0670
  179. #define PT_F13 0x0680
  180. #define PT_F14 0x0690
  181. #define PT_F15 0x06a0
  182. #define PT_F16 0x06b0
  183. #define PT_F17 0x06c0
  184. #define PT_F18 0x06d0
  185. #define PT_F19 0x06e0
  186. #define PT_F20 0x06f0
  187. #define PT_F21 0x0700
  188. #define PT_F22 0x0710
  189. #define PT_F23 0x0720
  190. #define PT_F24 0x0730
  191. #define PT_F25 0x0740
  192. #define PT_F26 0x0750
  193. #define PT_F27 0x0760
  194. #define PT_F28 0x0770
  195. #define PT_F29 0x0780
  196. #define PT_F30 0x0790
  197. #define PT_F31 0x07a0
  198. #define PT_R4 0x07b0
  199. #define PT_R5 0x07b8
  200. #define PT_R6 0x07c0
  201. #define PT_R7 0x07c8
  202. #define PT_B1 0x07d8
  203. #define PT_B2 0x07e0
  204. #define PT_B3 0x07e8
  205. #define PT_B4 0x07f0
  206. #define PT_B5 0x07f8
  207. #define PT_AR_EC 0x0800
  208. #define PT_AR_LC 0x0808
  209. #define PT_CR_IPSR 0x0830
  210. #define PT_CR_IIP 0x0838
  211. #define PT_CFM 0x0840
  212. #define PT_AR_UNAT 0x0848
  213. #define PT_AR_PFS 0x0850
  214. #define PT_AR_RSC 0x0858
  215. #define PT_AR_RNAT 0x0860
  216. #define PT_AR_BSPSTORE 0x0868
  217. #define PT_PR 0x0870
  218. #define PT_B6 0x0878
  219. #define PT_AR_BSP 0x0880 /* note: this points to the *end* of the backing store! */
  220. #define PT_R1 0x0888
  221. #define PT_R2 0x0890
  222. #define PT_R3 0x0898
  223. #define PT_R12 0x08a0
  224. #define PT_R13 0x08a8
  225. #define PT_R14 0x08b0
  226. #define PT_R15 0x08b8
  227. #define PT_R8 0x08c0
  228. #define PT_R9 0x08c8
  229. #define PT_R10 0x08d0
  230. #define PT_R11 0x08d8
  231. #define PT_R16 0x08e0
  232. #define PT_R17 0x08e8
  233. #define PT_R18 0x08f0
  234. #define PT_R19 0x08f8
  235. #define PT_R20 0x0900
  236. #define PT_R21 0x0908
  237. #define PT_R22 0x0910
  238. #define PT_R23 0x0918
  239. #define PT_R24 0x0920
  240. #define PT_R25 0x0928
  241. #define PT_R26 0x0930
  242. #define PT_R27 0x0938
  243. #define PT_R28 0x0940
  244. #define PT_R29 0x0948
  245. #define PT_R30 0x0950
  246. #define PT_R31 0x0958
  247. #define PT_AR_CCV 0x0960
  248. #define PT_AR_FPSR 0x0968
  249. #define PT_B0 0x0970
  250. #define PT_B7 0x0978
  251. #define PT_F6 0x0980
  252. #define PT_F7 0x0990
  253. #define PT_F8 0x09a0
  254. #define PT_F9 0x09b0
  255. #define PT_AR_CSD 0x09c0
  256. #define PT_AR_SSD 0x09c8
  257. #define PT_DBR 0x2000 /* data breakpoint registers */
  258. #define PT_IBR 0x3000 /* instruction breakpoint registers */
  259. #define PT_PMD 0x4000 /* performance monitoring counters */
  260. #endif /* _ASM_IA64_PTRACE_OFFSETS_H */