pgm_check.S 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Program check table.
  4. *
  5. * Copyright IBM Corp. 2012
  6. */
  7. #include <linux/linkage.h>
  8. #define PGM_CHECK(handler) .long handler
  9. #define PGM_CHECK_DEFAULT PGM_CHECK(default_trap_handler)
  10. /*
  11. * The program check table contains exactly 128 (0x00-0x7f) entries. Each
  12. * line defines the function to be called corresponding to the program check
  13. * interruption code.
  14. */
  15. .section .rodata, "a"
  16. ENTRY(pgm_check_table)
  17. PGM_CHECK_DEFAULT /* 00 */
  18. PGM_CHECK(illegal_op) /* 01 */
  19. PGM_CHECK(privileged_op) /* 02 */
  20. PGM_CHECK(execute_exception) /* 03 */
  21. PGM_CHECK(do_protection_exception) /* 04 */
  22. PGM_CHECK(addressing_exception) /* 05 */
  23. PGM_CHECK(specification_exception) /* 06 */
  24. PGM_CHECK(data_exception) /* 07 */
  25. PGM_CHECK(overflow_exception) /* 08 */
  26. PGM_CHECK(divide_exception) /* 09 */
  27. PGM_CHECK(overflow_exception) /* 0a */
  28. PGM_CHECK(divide_exception) /* 0b */
  29. PGM_CHECK(hfp_overflow_exception) /* 0c */
  30. PGM_CHECK(hfp_underflow_exception) /* 0d */
  31. PGM_CHECK(hfp_significance_exception) /* 0e */
  32. PGM_CHECK(hfp_divide_exception) /* 0f */
  33. PGM_CHECK(do_dat_exception) /* 10 */
  34. PGM_CHECK(do_dat_exception) /* 11 */
  35. PGM_CHECK(translation_exception) /* 12 */
  36. PGM_CHECK(special_op_exception) /* 13 */
  37. PGM_CHECK_DEFAULT /* 14 */
  38. PGM_CHECK(operand_exception) /* 15 */
  39. PGM_CHECK_DEFAULT /* 16 */
  40. PGM_CHECK_DEFAULT /* 17 */
  41. PGM_CHECK(transaction_exception) /* 18 */
  42. PGM_CHECK_DEFAULT /* 19 */
  43. PGM_CHECK_DEFAULT /* 1a */
  44. PGM_CHECK(vector_exception) /* 1b */
  45. PGM_CHECK(space_switch_exception) /* 1c */
  46. PGM_CHECK(hfp_sqrt_exception) /* 1d */
  47. PGM_CHECK_DEFAULT /* 1e */
  48. PGM_CHECK_DEFAULT /* 1f */
  49. PGM_CHECK_DEFAULT /* 20 */
  50. PGM_CHECK_DEFAULT /* 21 */
  51. PGM_CHECK_DEFAULT /* 22 */
  52. PGM_CHECK_DEFAULT /* 23 */
  53. PGM_CHECK_DEFAULT /* 24 */
  54. PGM_CHECK_DEFAULT /* 25 */
  55. PGM_CHECK_DEFAULT /* 26 */
  56. PGM_CHECK_DEFAULT /* 27 */
  57. PGM_CHECK_DEFAULT /* 28 */
  58. PGM_CHECK_DEFAULT /* 29 */
  59. PGM_CHECK_DEFAULT /* 2a */
  60. PGM_CHECK_DEFAULT /* 2b */
  61. PGM_CHECK_DEFAULT /* 2c */
  62. PGM_CHECK_DEFAULT /* 2d */
  63. PGM_CHECK_DEFAULT /* 2e */
  64. PGM_CHECK_DEFAULT /* 2f */
  65. PGM_CHECK_DEFAULT /* 30 */
  66. PGM_CHECK_DEFAULT /* 31 */
  67. PGM_CHECK_DEFAULT /* 32 */
  68. PGM_CHECK_DEFAULT /* 33 */
  69. PGM_CHECK_DEFAULT /* 34 */
  70. PGM_CHECK_DEFAULT /* 35 */
  71. PGM_CHECK_DEFAULT /* 36 */
  72. PGM_CHECK_DEFAULT /* 37 */
  73. PGM_CHECK(do_dat_exception) /* 38 */
  74. PGM_CHECK(do_dat_exception) /* 39 */
  75. PGM_CHECK(do_dat_exception) /* 3a */
  76. PGM_CHECK(do_dat_exception) /* 3b */
  77. PGM_CHECK_DEFAULT /* 3c */
  78. PGM_CHECK_DEFAULT /* 3d */
  79. PGM_CHECK_DEFAULT /* 3e */
  80. PGM_CHECK_DEFAULT /* 3f */
  81. PGM_CHECK_DEFAULT /* 40 */
  82. PGM_CHECK_DEFAULT /* 41 */
  83. PGM_CHECK_DEFAULT /* 42 */
  84. PGM_CHECK_DEFAULT /* 43 */
  85. PGM_CHECK_DEFAULT /* 44 */
  86. PGM_CHECK_DEFAULT /* 45 */
  87. PGM_CHECK_DEFAULT /* 46 */
  88. PGM_CHECK_DEFAULT /* 47 */
  89. PGM_CHECK_DEFAULT /* 48 */
  90. PGM_CHECK_DEFAULT /* 49 */
  91. PGM_CHECK_DEFAULT /* 4a */
  92. PGM_CHECK_DEFAULT /* 4b */
  93. PGM_CHECK_DEFAULT /* 4c */
  94. PGM_CHECK_DEFAULT /* 4d */
  95. PGM_CHECK_DEFAULT /* 4e */
  96. PGM_CHECK_DEFAULT /* 4f */
  97. PGM_CHECK_DEFAULT /* 50 */
  98. PGM_CHECK_DEFAULT /* 51 */
  99. PGM_CHECK_DEFAULT /* 52 */
  100. PGM_CHECK_DEFAULT /* 53 */
  101. PGM_CHECK_DEFAULT /* 54 */
  102. PGM_CHECK_DEFAULT /* 55 */
  103. PGM_CHECK_DEFAULT /* 56 */
  104. PGM_CHECK_DEFAULT /* 57 */
  105. PGM_CHECK_DEFAULT /* 58 */
  106. PGM_CHECK_DEFAULT /* 59 */
  107. PGM_CHECK_DEFAULT /* 5a */
  108. PGM_CHECK_DEFAULT /* 5b */
  109. PGM_CHECK_DEFAULT /* 5c */
  110. PGM_CHECK_DEFAULT /* 5d */
  111. PGM_CHECK_DEFAULT /* 5e */
  112. PGM_CHECK_DEFAULT /* 5f */
  113. PGM_CHECK_DEFAULT /* 60 */
  114. PGM_CHECK_DEFAULT /* 61 */
  115. PGM_CHECK_DEFAULT /* 62 */
  116. PGM_CHECK_DEFAULT /* 63 */
  117. PGM_CHECK_DEFAULT /* 64 */
  118. PGM_CHECK_DEFAULT /* 65 */
  119. PGM_CHECK_DEFAULT /* 66 */
  120. PGM_CHECK_DEFAULT /* 67 */
  121. PGM_CHECK_DEFAULT /* 68 */
  122. PGM_CHECK_DEFAULT /* 69 */
  123. PGM_CHECK_DEFAULT /* 6a */
  124. PGM_CHECK_DEFAULT /* 6b */
  125. PGM_CHECK_DEFAULT /* 6c */
  126. PGM_CHECK_DEFAULT /* 6d */
  127. PGM_CHECK_DEFAULT /* 6e */
  128. PGM_CHECK_DEFAULT /* 6f */
  129. PGM_CHECK_DEFAULT /* 70 */
  130. PGM_CHECK_DEFAULT /* 71 */
  131. PGM_CHECK_DEFAULT /* 72 */
  132. PGM_CHECK_DEFAULT /* 73 */
  133. PGM_CHECK_DEFAULT /* 74 */
  134. PGM_CHECK_DEFAULT /* 75 */
  135. PGM_CHECK_DEFAULT /* 76 */
  136. PGM_CHECK_DEFAULT /* 77 */
  137. PGM_CHECK_DEFAULT /* 78 */
  138. PGM_CHECK_DEFAULT /* 79 */
  139. PGM_CHECK_DEFAULT /* 7a */
  140. PGM_CHECK_DEFAULT /* 7b */
  141. PGM_CHECK_DEFAULT /* 7c */
  142. PGM_CHECK_DEFAULT /* 7d */
  143. PGM_CHECK_DEFAULT /* 7e */
  144. PGM_CHECK_DEFAULT /* 7f */