reg.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_D1 = 0,
  22. #define PT_D1 PT_D1
  23. PT_D2 = 1,
  24. #define PT_D2 PT_D2
  25. PT_D3 = 2,
  26. #define PT_D3 PT_D3
  27. PT_D4 = 3,
  28. #define PT_D4 PT_D4
  29. PT_D5 = 4,
  30. #define PT_D5 PT_D5
  31. PT_D6 = 5,
  32. #define PT_D6 PT_D6
  33. PT_D7 = 6,
  34. #define PT_D7 PT_D7
  35. PT_A0 = 7,
  36. #define PT_A0 PT_A0
  37. PT_A1 = 8,
  38. #define PT_A1 PT_A1
  39. PT_A2 = 9,
  40. #define PT_A2 PT_A2
  41. PT_A3 = 10,
  42. #define PT_A3 PT_A3
  43. PT_A4 = 11,
  44. #define PT_A4 PT_A4
  45. PT_A5 = 12,
  46. #define PT_A5 PT_A5
  47. PT_A6 = 13,
  48. #define PT_A6 PT_A6
  49. PT_D0 = 14,
  50. #define PT_D0 PT_D0
  51. PT_USP = 15,
  52. #define PT_USP PT_USP
  53. PT_ORIG_D0 = 16,
  54. #define PT_ORIG_D0 PT_ORIG_D0
  55. PT_SR = 17,
  56. #define PT_SR PT_SR
  57. PT_PC = 18,
  58. #define PT_PC PT_PC
  59. PT_FP0 = 21,
  60. #define PT_FP0 PT_FP0
  61. PT_FP1 = 24,
  62. #define PT_FP1 PT_FP1
  63. PT_FP2 = 27,
  64. #define PT_FP2 PT_FP2
  65. PT_FP3 = 30,
  66. #define PT_FP3 PT_FP3
  67. PT_FP4 = 33,
  68. #define PT_FP4 PT_FP4
  69. PT_FP5 = 36,
  70. #define PT_FP5 PT_FP5
  71. PT_FP6 = 39,
  72. #define PT_FP6 PT_FP6
  73. PT_FP7 = 42,
  74. #define PT_FP7 PT_FP7
  75. PT_FPCR = 45,
  76. #define PT_FPCR PT_FPCR
  77. PT_FPSR = 46,
  78. #define PT_FPSR PT_FPSR
  79. PT_FPIAR = 47
  80. #define PT_FPIAR PT_FPIAR
  81. };
  82. #endif /* _SYS_REG_H */