2 * arch/s390/kernel/traps.c
5 * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
7 * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
9 * Derived from "arch/i386/kernel/traps.c"
10 * Copyright (C) 1991, 1992 Linus Torvalds
14 * 'Traps.c' handles hardware traps and faults after we have saved some
17 #include <linux/sched.h>
18 #include <linux/kernel.h>
19 #include <linux/string.h>
20 #include <linux/errno.h>
21 #include <linux/tracehook.h>
22 #include <linux/timer.h>
24 #include <linux/smp.h>
25 #include <linux/init.h>
26 #include <linux/interrupt.h>
27 #include <linux/seq_file.h>
28 #include <linux/delay.h>
29 #include <linux/module.h>
30 #include <linux/kdebug.h>
31 #include <linux/kallsyms.h>
32 #include <linux/reboot.h>
33 #include <linux/kprobes.h>
34 #include <linux/bug.h>
35 #include <linux/utsname.h>
36 #include <asm/system.h>
37 #include <asm/uaccess.h>
39 #include <asm/atomic.h>
40 #include <asm/mathemu.h>
41 #include <asm/cpcmd.h>
42 #include <asm/lowcore.h>
43 #include <asm/debug.h>
46 pgm_check_handler_t
*pgm_check_table
[128];
48 int show_unhandled_signals
;
50 extern pgm_check_handler_t do_protection_exception
;
51 extern pgm_check_handler_t do_dat_exception
;
52 extern pgm_check_handler_t do_asce_exception
;
54 #define stack_pointer ({ void **sp; asm("la %0,0(15)" : "=&d" (sp)); sp; })
58 #define FOURLONG "%08lx %08lx %08lx %08lx\n"
59 static int kstack_depth_to_print
= 12;
60 #else /* CONFIG_64BIT */
61 #define LONG "%016lx "
62 #define FOURLONG "%016lx %016lx %016lx %016lx\n"
63 static int kstack_depth_to_print
= 20;
64 #endif /* CONFIG_64BIT */
67 * For show_trace we have tree different stack to consider:
68 * - the panic stack which is used if the kernel stack has overflown
69 * - the asynchronous interrupt stack (cpu related)
70 * - the synchronous kernel stack (process related)
71 * The stack trace can start at any of the three stack and can potentially
72 * touch all of them. The order is: panic stack, async stack, sync stack.
75 __show_trace(unsigned long sp
, unsigned long low
, unsigned long high
)
77 struct stack_frame
*sf
;
81 sp
= sp
& PSW_ADDR_INSN
;
82 if (sp
< low
|| sp
> high
- sizeof(*sf
))
84 sf
= (struct stack_frame
*) sp
;
85 printk("([<%016lx>] ", sf
->gprs
[8] & PSW_ADDR_INSN
);
86 print_symbol("%s)\n", sf
->gprs
[8] & PSW_ADDR_INSN
);
87 /* Follow the backchain. */
90 sp
= sf
->back_chain
& PSW_ADDR_INSN
;
93 if (sp
<= low
|| sp
> high
- sizeof(*sf
))
95 sf
= (struct stack_frame
*) sp
;
96 printk(" [<%016lx>] ", sf
->gprs
[8] & PSW_ADDR_INSN
);
97 print_symbol("%s\n", sf
->gprs
[8] & PSW_ADDR_INSN
);
99 /* Zero backchain detected, check for interrupt frame. */
100 sp
= (unsigned long) (sf
+ 1);
101 if (sp
<= low
|| sp
> high
- sizeof(*regs
))
103 regs
= (struct pt_regs
*) sp
;
104 printk(" [<%016lx>] ", regs
->psw
.addr
& PSW_ADDR_INSN
);
105 print_symbol("%s\n", regs
->psw
.addr
& PSW_ADDR_INSN
);
111 static void show_trace(struct task_struct
*task
, unsigned long *stack
)
113 register unsigned long __r15
asm ("15");
116 sp
= (unsigned long) stack
;
118 sp
= task
? task
->thread
.ksp
: __r15
;
119 printk("Call Trace:\n");
120 #ifdef CONFIG_CHECK_STACK
121 sp
= __show_trace(sp
, S390_lowcore
.panic_stack
- 4096,
122 S390_lowcore
.panic_stack
);
124 sp
= __show_trace(sp
, S390_lowcore
.async_stack
- ASYNC_SIZE
,
125 S390_lowcore
.async_stack
);
127 __show_trace(sp
, (unsigned long) task_stack_page(task
),
128 (unsigned long) task_stack_page(task
) + THREAD_SIZE
);
130 __show_trace(sp
, S390_lowcore
.thread_info
,
131 S390_lowcore
.thread_info
+ THREAD_SIZE
);
134 debug_show_held_locks(task
);
137 void show_stack(struct task_struct
*task
, unsigned long *sp
)
139 register unsigned long * __r15
asm ("15");
140 unsigned long *stack
;
144 stack
= task
? (unsigned long *) task
->thread
.ksp
: __r15
;
148 for (i
= 0; i
< kstack_depth_to_print
; i
++) {
149 if (((addr_t
) stack
& (THREAD_SIZE
-1)) == 0)
151 if (i
&& ((i
* sizeof (long) % 32) == 0))
153 printk(LONG
, *stack
++);
156 show_trace(task
, sp
);
159 static void show_last_breaking_event(struct pt_regs
*regs
)
162 printk("Last Breaking-Event-Address:\n");
163 printk(" [<%016lx>] ", regs
->args
[0] & PSW_ADDR_INSN
);
164 print_symbol("%s\n", regs
->args
[0] & PSW_ADDR_INSN
);
169 * The architecture-independent dump_stack generator
171 void dump_stack(void)
173 printk("CPU: %d %s %s %.*s\n",
174 task_thread_info(current
)->cpu
, print_tainted(),
175 init_utsname()->release
,
176 (int)strcspn(init_utsname()->version
, " "),
177 init_utsname()->version
);
178 printk("Process %s (pid: %d, task: %p, ksp: %p)\n",
179 current
->comm
, current
->pid
, current
,
180 (void *) current
->thread
.ksp
);
181 show_stack(NULL
, NULL
);
183 EXPORT_SYMBOL(dump_stack
);
185 static inline int mask_bits(struct pt_regs
*regs
, unsigned long bits
)
187 return (regs
->psw
.mask
& bits
) / ((~bits
+ 1) & bits
);
190 void show_registers(struct pt_regs
*regs
)
194 mode
= (regs
->psw
.mask
& PSW_MASK_PSTATE
) ? "User" : "Krnl";
195 printk("%s PSW : %p %p",
196 mode
, (void *) regs
->psw
.mask
,
197 (void *) regs
->psw
.addr
);
198 print_symbol(" (%s)\n", regs
->psw
.addr
& PSW_ADDR_INSN
);
199 printk(" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x "
200 "P:%x AS:%x CC:%x PM:%x", mask_bits(regs
, PSW_MASK_PER
),
201 mask_bits(regs
, PSW_MASK_DAT
), mask_bits(regs
, PSW_MASK_IO
),
202 mask_bits(regs
, PSW_MASK_EXT
), mask_bits(regs
, PSW_MASK_KEY
),
203 mask_bits(regs
, PSW_MASK_MCHECK
), mask_bits(regs
, PSW_MASK_WAIT
),
204 mask_bits(regs
, PSW_MASK_PSTATE
), mask_bits(regs
, PSW_MASK_ASC
),
205 mask_bits(regs
, PSW_MASK_CC
), mask_bits(regs
, PSW_MASK_PM
));
207 printk(" EA:%x", mask_bits(regs
, PSW_BASE_BITS
));
209 printk("\n%s GPRS: " FOURLONG
, mode
,
210 regs
->gprs
[0], regs
->gprs
[1], regs
->gprs
[2], regs
->gprs
[3]);
212 regs
->gprs
[4], regs
->gprs
[5], regs
->gprs
[6], regs
->gprs
[7]);
214 regs
->gprs
[8], regs
->gprs
[9], regs
->gprs
[10], regs
->gprs
[11]);
216 regs
->gprs
[12], regs
->gprs
[13], regs
->gprs
[14], regs
->gprs
[15]);
221 void show_regs(struct pt_regs
*regs
)
224 printk("CPU: %d %s %s %.*s\n",
225 task_thread_info(current
)->cpu
, print_tainted(),
226 init_utsname()->release
,
227 (int)strcspn(init_utsname()->version
, " "),
228 init_utsname()->version
);
229 printk("Process %s (pid: %d, task: %p, ksp: %p)\n",
230 current
->comm
, current
->pid
, current
,
231 (void *) current
->thread
.ksp
);
232 show_registers(regs
);
233 /* Show stack backtrace if pt_regs is from kernel mode */
234 if (!(regs
->psw
.mask
& PSW_MASK_PSTATE
))
235 show_trace(NULL
, (unsigned long *) regs
->gprs
[15]);
236 show_last_breaking_event(regs
);
239 static DEFINE_SPINLOCK(die_lock
);
241 void die(const char * str
, struct pt_regs
* regs
, long err
)
243 static int die_counter
;
248 spin_lock_irq(&die_lock
);
250 printk("%s: %04lx [#%d] ", str
, err
& 0xffff, ++die_counter
);
251 #ifdef CONFIG_PREEMPT
257 #ifdef CONFIG_DEBUG_PAGEALLOC
258 printk("DEBUG_PAGEALLOC");
261 notify_die(DIE_OOPS
, str
, regs
, err
, current
->thread
.trap_no
, SIGSEGV
);
264 add_taint(TAINT_DIE
);
265 spin_unlock_irq(&die_lock
);
267 panic("Fatal exception in interrupt");
269 panic("Fatal exception: panic_on_oops");
274 static void inline report_user_fault(struct pt_regs
*regs
, long int_code
,
277 if ((task_pid_nr(current
) > 1) && !show_unhandled_signals
)
279 if (!unhandled_signal(current
, signr
))
281 if (!printk_ratelimit())
283 printk("User process fault: interruption code 0x%lX ", int_code
);
284 print_vma_addr("in ", regs
->psw
.addr
& PSW_ADDR_INSN
);
289 int is_valid_bugaddr(unsigned long addr
)
294 static inline void __kprobes
do_trap(long pgm_int_code
, int signr
, char *str
,
295 struct pt_regs
*regs
, siginfo_t
*info
)
297 if (notify_die(DIE_TRAP
, str
, regs
, pgm_int_code
,
298 pgm_int_code
, signr
) == NOTIFY_STOP
)
301 if (regs
->psw
.mask
& PSW_MASK_PSTATE
) {
302 struct task_struct
*tsk
= current
;
304 tsk
->thread
.trap_no
= pgm_int_code
& 0xffff;
305 force_sig_info(signr
, info
, tsk
);
306 report_user_fault(regs
, pgm_int_code
, signr
);
308 const struct exception_table_entry
*fixup
;
309 fixup
= search_exception_tables(regs
->psw
.addr
& PSW_ADDR_INSN
);
311 regs
->psw
.addr
= fixup
->fixup
| PSW_ADDR_AMODE
;
313 enum bug_trap_type btt
;
315 btt
= report_bug(regs
->psw
.addr
& PSW_ADDR_INSN
, regs
);
316 if (btt
== BUG_TRAP_TYPE_WARN
)
318 die(str
, regs
, pgm_int_code
);
323 static inline void __user
*get_psw_address(struct pt_regs
*regs
,
326 return (void __user
*)
327 ((regs
->psw
.addr
- (pgm_int_code
>> 16)) & PSW_ADDR_INSN
);
330 void __kprobes
do_per_trap(struct pt_regs
*regs
)
332 if (notify_die(DIE_SSTEP
, "sstep", regs
, 0, 0, SIGTRAP
) == NOTIFY_STOP
)
334 if (tracehook_consider_fatal_signal(current
, SIGTRAP
))
335 force_sig(SIGTRAP
, current
);
338 static void default_trap_handler(struct pt_regs
*regs
, long pgm_int_code
,
339 unsigned long trans_exc_code
)
341 if (regs
->psw
.mask
& PSW_MASK_PSTATE
) {
342 report_user_fault(regs
, pgm_int_code
, SIGSEGV
);
345 die("Unknown program exception", regs
, pgm_int_code
);
348 #define DO_ERROR_INFO(name, signr, sicode, str) \
349 static void name(struct pt_regs *regs, long pgm_int_code, \
350 unsigned long trans_exc_code) \
353 info.si_signo = signr; \
355 info.si_code = sicode; \
356 info.si_addr = get_psw_address(regs, pgm_int_code); \
357 do_trap(pgm_int_code, signr, str, regs, &info); \
360 DO_ERROR_INFO(addressing_exception
, SIGILL
, ILL_ILLADR
,
361 "addressing exception")
362 DO_ERROR_INFO(execute_exception
, SIGILL
, ILL_ILLOPN
,
364 DO_ERROR_INFO(divide_exception
, SIGFPE
, FPE_INTDIV
,
365 "fixpoint divide exception")
366 DO_ERROR_INFO(overflow_exception
, SIGFPE
, FPE_INTOVF
,
367 "fixpoint overflow exception")
368 DO_ERROR_INFO(hfp_overflow_exception
, SIGFPE
, FPE_FLTOVF
,
369 "HFP overflow exception")
370 DO_ERROR_INFO(hfp_underflow_exception
, SIGFPE
, FPE_FLTUND
,
371 "HFP underflow exception")
372 DO_ERROR_INFO(hfp_significance_exception
, SIGFPE
, FPE_FLTRES
,
373 "HFP significance exception")
374 DO_ERROR_INFO(hfp_divide_exception
, SIGFPE
, FPE_FLTDIV
,
375 "HFP divide exception")
376 DO_ERROR_INFO(hfp_sqrt_exception
, SIGFPE
, FPE_FLTINV
,
377 "HFP square root exception")
378 DO_ERROR_INFO(operand_exception
, SIGILL
, ILL_ILLOPN
,
380 DO_ERROR_INFO(privileged_op
, SIGILL
, ILL_PRVOPC
,
381 "privileged operation")
382 DO_ERROR_INFO(special_op_exception
, SIGILL
, ILL_ILLOPN
,
383 "special operation exception")
384 DO_ERROR_INFO(translation_exception
, SIGILL
, ILL_ILLOPN
,
385 "translation exception")
387 static inline void do_fp_trap(struct pt_regs
*regs
, void __user
*location
,
388 int fpc
, long pgm_int_code
)
392 si
.si_signo
= SIGFPE
;
394 si
.si_addr
= location
;
396 /* FPC[2] is Data Exception Code */
397 if ((fpc
& 0x00000300) == 0) {
398 /* bits 6 and 7 of DXC are 0 iff IEEE exception */
399 if (fpc
& 0x8000) /* invalid fp operation */
400 si
.si_code
= FPE_FLTINV
;
401 else if (fpc
& 0x4000) /* div by 0 */
402 si
.si_code
= FPE_FLTDIV
;
403 else if (fpc
& 0x2000) /* overflow */
404 si
.si_code
= FPE_FLTOVF
;
405 else if (fpc
& 0x1000) /* underflow */
406 si
.si_code
= FPE_FLTUND
;
407 else if (fpc
& 0x0800) /* inexact */
408 si
.si_code
= FPE_FLTRES
;
410 do_trap(pgm_int_code
, SIGFPE
,
411 "floating point exception", regs
, &si
);
414 static void __kprobes
illegal_op(struct pt_regs
*regs
, long pgm_int_code
,
415 unsigned long trans_exc_code
)
419 __u16 __user
*location
;
422 location
= get_psw_address(regs
, pgm_int_code
);
424 if (regs
->psw
.mask
& PSW_MASK_PSTATE
) {
425 if (get_user(*((__u16
*) opcode
), (__u16 __user
*) location
))
427 if (*((__u16
*) opcode
) == S390_BREAKPOINT_U16
) {
428 if (tracehook_consider_fatal_signal(current
, SIGTRAP
))
429 force_sig(SIGTRAP
, current
);
432 #ifdef CONFIG_MATHEMU
433 } else if (opcode
[0] == 0xb3) {
434 if (get_user(*((__u16
*) (opcode
+2)), location
+1))
436 signal
= math_emu_b3(opcode
, regs
);
437 } else if (opcode
[0] == 0xed) {
438 if (get_user(*((__u32
*) (opcode
+2)),
439 (__u32 __user
*)(location
+1)))
441 signal
= math_emu_ed(opcode
, regs
);
442 } else if (*((__u16
*) opcode
) == 0xb299) {
443 if (get_user(*((__u16
*) (opcode
+2)), location
+1))
445 signal
= math_emu_srnm(opcode
, regs
);
446 } else if (*((__u16
*) opcode
) == 0xb29c) {
447 if (get_user(*((__u16
*) (opcode
+2)), location
+1))
449 signal
= math_emu_stfpc(opcode
, regs
);
450 } else if (*((__u16
*) opcode
) == 0xb29d) {
451 if (get_user(*((__u16
*) (opcode
+2)), location
+1))
453 signal
= math_emu_lfpc(opcode
, regs
);
459 * If we get an illegal op in kernel mode, send it through the
460 * kprobes notifier. If kprobes doesn't pick it up, SIGILL
462 if (notify_die(DIE_BPT
, "bpt", regs
, pgm_int_code
,
463 3, SIGTRAP
) != NOTIFY_STOP
)
467 #ifdef CONFIG_MATHEMU
468 if (signal
== SIGFPE
)
469 do_fp_trap(regs
, location
,
470 current
->thread
.fp_regs
.fpc
, pgm_int_code
);
471 else if (signal
== SIGSEGV
) {
472 info
.si_signo
= signal
;
474 info
.si_code
= SEGV_MAPERR
;
475 info
.si_addr
= (void __user
*) location
;
476 do_trap(pgm_int_code
, signal
,
477 "user address fault", regs
, &info
);
481 info
.si_signo
= signal
;
483 info
.si_code
= ILL_ILLOPC
;
484 info
.si_addr
= (void __user
*) location
;
485 do_trap(pgm_int_code
, signal
,
486 "illegal operation", regs
, &info
);
491 #ifdef CONFIG_MATHEMU
492 asmlinkage
void specification_exception(struct pt_regs
*regs
,
494 unsigned long trans_exc_code
)
497 __u16 __user
*location
= NULL
;
500 location
= (__u16 __user
*) get_psw_address(regs
, pgm_int_code
);
502 if (regs
->psw
.mask
& PSW_MASK_PSTATE
) {
503 get_user(*((__u16
*) opcode
), location
);
505 case 0x28: /* LDR Rx,Ry */
506 signal
= math_emu_ldr(opcode
);
508 case 0x38: /* LER Rx,Ry */
509 signal
= math_emu_ler(opcode
);
511 case 0x60: /* STD R,D(X,B) */
512 get_user(*((__u16
*) (opcode
+2)), location
+1);
513 signal
= math_emu_std(opcode
, regs
);
515 case 0x68: /* LD R,D(X,B) */
516 get_user(*((__u16
*) (opcode
+2)), location
+1);
517 signal
= math_emu_ld(opcode
, regs
);
519 case 0x70: /* STE R,D(X,B) */
520 get_user(*((__u16
*) (opcode
+2)), location
+1);
521 signal
= math_emu_ste(opcode
, regs
);
523 case 0x78: /* LE R,D(X,B) */
524 get_user(*((__u16
*) (opcode
+2)), location
+1);
525 signal
= math_emu_le(opcode
, regs
);
534 if (signal
== SIGFPE
)
535 do_fp_trap(regs
, location
,
536 current
->thread
.fp_regs
.fpc
, pgm_int_code
);
539 info
.si_signo
= signal
;
541 info
.si_code
= ILL_ILLOPN
;
542 info
.si_addr
= location
;
543 do_trap(pgm_int_code
, signal
,
544 "specification exception", regs
, &info
);
548 DO_ERROR_INFO(specification_exception
, SIGILL
, ILL_ILLOPN
,
549 "specification exception");
552 static void data_exception(struct pt_regs
*regs
, long pgm_int_code
,
553 unsigned long trans_exc_code
)
555 __u16 __user
*location
;
558 location
= get_psw_address(regs
, pgm_int_code
);
560 if (MACHINE_HAS_IEEE
)
561 asm volatile("stfpc %0" : "=m" (current
->thread
.fp_regs
.fpc
));
563 #ifdef CONFIG_MATHEMU
564 else if (regs
->psw
.mask
& PSW_MASK_PSTATE
) {
566 get_user(*((__u16
*) opcode
), location
);
568 case 0x28: /* LDR Rx,Ry */
569 signal
= math_emu_ldr(opcode
);
571 case 0x38: /* LER Rx,Ry */
572 signal
= math_emu_ler(opcode
);
574 case 0x60: /* STD R,D(X,B) */
575 get_user(*((__u16
*) (opcode
+2)), location
+1);
576 signal
= math_emu_std(opcode
, regs
);
578 case 0x68: /* LD R,D(X,B) */
579 get_user(*((__u16
*) (opcode
+2)), location
+1);
580 signal
= math_emu_ld(opcode
, regs
);
582 case 0x70: /* STE R,D(X,B) */
583 get_user(*((__u16
*) (opcode
+2)), location
+1);
584 signal
= math_emu_ste(opcode
, regs
);
586 case 0x78: /* LE R,D(X,B) */
587 get_user(*((__u16
*) (opcode
+2)), location
+1);
588 signal
= math_emu_le(opcode
, regs
);
591 get_user(*((__u16
*) (opcode
+2)), location
+1);
592 signal
= math_emu_b3(opcode
, regs
);
595 get_user(*((__u32
*) (opcode
+2)),
596 (__u32 __user
*)(location
+1));
597 signal
= math_emu_ed(opcode
, regs
);
600 if (opcode
[1] == 0x99) {
601 get_user(*((__u16
*) (opcode
+2)), location
+1);
602 signal
= math_emu_srnm(opcode
, regs
);
603 } else if (opcode
[1] == 0x9c) {
604 get_user(*((__u16
*) (opcode
+2)), location
+1);
605 signal
= math_emu_stfpc(opcode
, regs
);
606 } else if (opcode
[1] == 0x9d) {
607 get_user(*((__u16
*) (opcode
+2)), location
+1);
608 signal
= math_emu_lfpc(opcode
, regs
);
618 if (current
->thread
.fp_regs
.fpc
& FPC_DXC_MASK
)
622 if (signal
== SIGFPE
)
623 do_fp_trap(regs
, location
,
624 current
->thread
.fp_regs
.fpc
, pgm_int_code
);
627 info
.si_signo
= signal
;
629 info
.si_code
= ILL_ILLOPN
;
630 info
.si_addr
= location
;
631 do_trap(pgm_int_code
, signal
, "data exception", regs
, &info
);
635 static void space_switch_exception(struct pt_regs
*regs
, long pgm_int_code
,
636 unsigned long trans_exc_code
)
640 /* Set user psw back to home space mode. */
641 if (regs
->psw
.mask
& PSW_MASK_PSTATE
)
642 regs
->psw
.mask
|= PSW_ASC_HOME
;
644 info
.si_signo
= SIGILL
;
646 info
.si_code
= ILL_PRVOPC
;
647 info
.si_addr
= get_psw_address(regs
, pgm_int_code
);
648 do_trap(pgm_int_code
, SIGILL
, "space switch event", regs
, &info
);
651 asmlinkage
void __kprobes
kernel_stack_overflow(struct pt_regs
* regs
)
654 printk("Kernel stack overflow.\n");
657 panic("Corrupt kernel stack, can't continue.");
660 /* init is done in lowcore.S and head.S */
662 void __init
trap_init(void)
666 for (i
= 0; i
< 128; i
++)
667 pgm_check_table
[i
] = &default_trap_handler
;
668 pgm_check_table
[1] = &illegal_op
;
669 pgm_check_table
[2] = &privileged_op
;
670 pgm_check_table
[3] = &execute_exception
;
671 pgm_check_table
[4] = &do_protection_exception
;
672 pgm_check_table
[5] = &addressing_exception
;
673 pgm_check_table
[6] = &specification_exception
;
674 pgm_check_table
[7] = &data_exception
;
675 pgm_check_table
[8] = &overflow_exception
;
676 pgm_check_table
[9] = ÷_exception
;
677 pgm_check_table
[0x0A] = &overflow_exception
;
678 pgm_check_table
[0x0B] = ÷_exception
;
679 pgm_check_table
[0x0C] = &hfp_overflow_exception
;
680 pgm_check_table
[0x0D] = &hfp_underflow_exception
;
681 pgm_check_table
[0x0E] = &hfp_significance_exception
;
682 pgm_check_table
[0x0F] = &hfp_divide_exception
;
683 pgm_check_table
[0x10] = &do_dat_exception
;
684 pgm_check_table
[0x11] = &do_dat_exception
;
685 pgm_check_table
[0x12] = &translation_exception
;
686 pgm_check_table
[0x13] = &special_op_exception
;
688 pgm_check_table
[0x38] = &do_asce_exception
;
689 pgm_check_table
[0x39] = &do_dat_exception
;
690 pgm_check_table
[0x3A] = &do_dat_exception
;
691 pgm_check_table
[0x3B] = &do_dat_exception
;
692 #endif /* CONFIG_64BIT */
693 pgm_check_table
[0x15] = &operand_exception
;
694 pgm_check_table
[0x1C] = &space_switch_exception
;
695 pgm_check_table
[0x1D] = &hfp_sqrt_exception
;
696 /* Enable machine checks early. */