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