regdef.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Copyright (C) 1997, 1998, 2002, 2003, 2004 Free Software Foundation, Inc.
  6. Contributed by Ralf Baechle <ralf@gnu.org>.
  7. The GNU C Library is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The GNU C Library is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the GNU C Library; if not, write to the Free
  17. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18. 02111-1307 USA. */
  19. #ifndef _SYS_REGDEF_H
  20. #define _SYS_REGDEF_H
  21. /*
  22. * Symbolic register names for 32 bit ABI
  23. */
  24. #define o0 r0 /* arguments r0 ~ r5 */
  25. #define o1 r1
  26. #define o2 r2
  27. #define o3 r3
  28. #define o4 r4
  29. #define o5 r5
  30. #define o6 r6
  31. #define o7 r7
  32. #define h0 r0 /* arguments r0 ~ r5 */
  33. #define h1 r1
  34. #define h2 r2
  35. #define h3 r3
  36. #define h4 r4
  37. #define h5 r5
  38. #define h6 r6
  39. #define h7 r7
  40. #define h8 r8
  41. #define h9 r9
  42. #define h10 r10
  43. #define h11 r11
  44. #define h12 r16
  45. #define h13 r17
  46. #define h14 r18
  47. #define h15 r19
  48. #define a0 r0 /* arguments r0 ~ r5 */
  49. #define a1 r1
  50. #define a2 r2
  51. #define a3 r3
  52. #define a4 r4
  53. #define a5 r5
  54. #define s0 r6
  55. #define s1 r7
  56. #define s2 r8
  57. #define s3 r9
  58. #define s4 r10
  59. #define s5 r11
  60. #define s6 r12
  61. #define s7 r13
  62. #define s8 r14
  63. #define ta r15
  64. #define t0 r16
  65. #define t1 r17
  66. #define t2 r18
  67. #define t3 r19
  68. #define t4 r20
  69. #define t5 r21
  70. #define t6 r22
  71. #define t7 r23
  72. #define t8 r24
  73. #define t9 r25
  74. #define p0 r26
  75. #define p1 r27
  76. #define r28 fp
  77. #define s9 r28
  78. #define r29 gp
  79. #define r30 ra
  80. #define r31 sp
  81. #endif /* _SYS_REGDEF_H */