pgm_check.S 4.3 KB

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