asm.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* $NetBSD: asm.h,v 1.29 2010/03/09 22:36:41 matt Exp $ */
  2. /*
  3. * Copyright (C) 1995, 1996 Wolfgang Solfrank.
  4. * Copyright (C) 1995, 1996 TooLs GmbH.
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. All advertising materials mentioning features or use of this software
  16. * must display the following acknowledgement:
  17. * This product includes software developed by TooLs GmbH.
  18. * 4. The name of TooLs GmbH may not be used to endorse or promote products
  19. * derived from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
  22. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  23. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24. * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  26. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  27. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  29. * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  30. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. #ifndef _PPC_BITS_ASM_H_
  33. #define _PPC_BITS_ASM_H_
  34. #define cr0 0
  35. #define cr1 1
  36. #define cr2 2
  37. #define cr3 3
  38. #define cr4 4
  39. #define cr5 5
  40. #define cr6 6
  41. #define cr7 7
  42. /* General Purpose Registers (GPRs) */
  43. #define r0 0
  44. #define r1 1
  45. #define r2 2
  46. #define r3 3
  47. #define r4 4
  48. #define r5 5
  49. #define r6 6
  50. #define r7 7
  51. #define r8 8
  52. #define r9 9
  53. #define r10 10
  54. #define r11 11
  55. #define r12 12
  56. #define r13 13
  57. #define r14 14
  58. #define r15 15
  59. #define r16 16
  60. #define r17 17
  61. #define r18 18
  62. #define r19 19
  63. #define r20 20
  64. #define r21 21
  65. #define r22 22
  66. #define r23 23
  67. #define r24 24
  68. #define r25 25
  69. #define r26 26
  70. #define r27 27
  71. #define r28 28
  72. #define r29 29
  73. #define r30 30
  74. #define r31 31
  75. /* Floating Point Registers (FPRs) */
  76. #define fr0 0
  77. #define fr1 1
  78. #define fr2 2
  79. #define fr3 3
  80. #define fr4 4
  81. #define fr5 5
  82. #define fr6 6
  83. #define fr7 7
  84. #define fr8 8
  85. #define fr9 9
  86. #define fr10 10
  87. #define fr11 11
  88. #define fr12 12
  89. #define fr13 13
  90. #define fr14 14
  91. #define fr15 15
  92. #define fr16 16
  93. #define fr17 17
  94. #define fr18 18
  95. #define fr19 19
  96. #define fr20 20
  97. #define fr21 21
  98. #define fr22 22
  99. #define fr23 23
  100. #define fr24 24
  101. #define fr25 25
  102. #define fr26 26
  103. #define fr27 27
  104. #define fr28 28
  105. #define fr29 29
  106. #define fr30 30
  107. #define fr31 31
  108. #endif /* _PPC_BITS_ASM_H_ */