2 * File: arch/blackfin/kernel/traps.c
4 * Author: Hamish Macdonald
7 * Description: uses S/W interrupt 15 for the system calls
10 * Copyright 2004-2006 Analog Devices Inc.
12 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see the file COPYING, or write
26 * to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #include <linux/uaccess.h>
31 #include <linux/interrupt.h>
32 #include <linux/module.h>
33 #include <linux/kallsyms.h>
35 #include <asm/traps.h>
36 #include <asm/cacheflush.h>
37 #include <asm/blackfin.h>
38 #include <asm/irq_handler.h>
39 #include <asm/trace.h>
40 #include <asm/fixed_code.h>
43 # include <linux/debugger.h>
44 # include <linux/kgdb.h>
46 # define CHK_DEBUGGER_TRAP() \
48 CHK_DEBUGGER(trapnr, sig, info.si_code, fp, ); \
50 # define CHK_DEBUGGER_TRAP_MAYBE() \
53 CHK_DEBUGGER_TRAP(); \
56 # define CHK_DEBUGGER_TRAP() do { } while (0)
57 # define CHK_DEBUGGER_TRAP_MAYBE() do { } while (0)
60 /* Initiate the event table handler */
61 void __init trap_init(void)
64 bfin_write_EVT3(trap);
68 int kstack_depth_to_print = 48;
70 static void decode_address(char *buf, unsigned long address)
72 struct vm_list_struct *vml;
73 struct task_struct *p;
75 unsigned long flags, offset;
76 unsigned int in_exception = bfin_read_IPEND() & 0x10;
78 #ifdef CONFIG_KALLSYMS
79 unsigned long symsize;
85 /* look up the address and see if we are in kernel space */
86 symname = kallsyms_lookup(address, &symsize, &offset, &modname, namebuf);
89 /* yeah! kernel space! */
92 sprintf(buf, "<0x%p> { %s%s%s%s + 0x%lx }",
93 (void *)address, delim, modname, delim, symname,
94 (unsigned long)offset);
100 /* Problem in fixed code section? */
101 if (address >= FIXED_CODE_START && address < FIXED_CODE_END) {
102 sprintf(buf, "<0x%p> /* Maybe fixed code section */", (void *)address);
106 /* Problem somewhere before the kernel start address */
107 if (address < CONFIG_BOOT_LOAD) {
108 sprintf(buf, "<0x%p> /* Maybe null pointer? */", (void *)address);
112 /* looks like we're off in user-land, so let's walk all the
113 * mappings of all our processes and see if we can't be a whee
116 write_lock_irqsave(&tasklist_lock, flags);
117 for_each_process(p) {
118 mm = (in_exception ? p->mm : get_task_mm(p));
122 vml = mm->context.vmlist;
124 struct vm_area_struct *vma = vml->vma;
126 if (address >= vma->vm_start && address < vma->vm_end) {
127 char *name = p->comm;
128 struct file *file = vma->vm_file;
131 name = d_path(file->f_dentry,
137 /* FLAT does not have its text aligned to the start of
138 * the map while FDPIC ELF does ...
141 (address > current->mm->start_code) &&
142 (address < current->mm->end_code))
143 offset = address - current->mm->start_code;
145 offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);
147 sprintf(buf, "<0x%p> [ %s + 0x%lx ]",
148 (void *)address, name, offset);
160 /* we were unable to find this address anywhere */
161 sprintf(buf, "[<0x%p>]", (void *)address);
164 write_unlock_irqrestore(&tasklist_lock, flags);
167 asmlinkage void double_fault_c(struct pt_regs *fp)
170 oops_in_progress = 1;
171 printk(KERN_EMERG "\n" KERN_EMERG "Double Fault\n");
172 dump_bfin_regs(fp, (void *)fp->retx);
173 panic("Double Fault - unrecoverable event\n");
177 asmlinkage void trap_c(struct pt_regs *fp)
179 #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON
184 unsigned long trapnr = fp->seqstat & SEQSTAT_EXCAUSE;
186 trace_buffer_save(j);
188 /* Important - be very careful dereferncing pointers - will lead to
189 * double faults if the stack has become corrupt
192 /* If the fault was caused by a kernel thread, or interrupt handler
193 * we will kernel panic, so the system reboots.
194 * If KGDB is enabled, don't set this for kernel breakpoints
196 if ((bfin_read_IPEND() & 0xFFC0)
198 && trapnr != VEC_EXCPT02
202 oops_in_progress = 1;
203 } else if (current) {
204 if (current->mm == NULL) {
206 oops_in_progress = 1;
210 /* trap_c() will be called for exceptions. During exceptions
211 * processing, the pc value should be set with retx value.
212 * With this change we can cleanup some code in signal.c- TODO
214 fp->orig_pc = fp->retx;
215 /* printk("exception: 0x%x, ipend=%x, reti=%x, retx=%x\n",
216 trapnr, fp->ipend, fp->pc, fp->retx); */
218 /* send the appropriate signal to the user program */
221 /* This table works in conjuction with the one in ./mach-common/entry.S
222 * Some exceptions are handled there (in assembly, in exception space)
223 * Some are handled here, (in C, in interrupt space)
224 * Some, like CPLB, are handled in both, where the normal path is
225 * handled in assembly/exception space, and the error path is handled
229 /* 0x00 - Linux Syscall, getting here is an error */
230 /* 0x01 - userspace gdb breakpoint, handled here */
232 info.si_code = TRAP_ILLTRAP;
234 CHK_DEBUGGER_TRAP_MAYBE();
235 /* Check if this is a breakpoint in kernel space */
236 if (fp->ipend & 0xffc0)
241 case VEC_EXCPT02 : /* gdb connection */
242 info.si_code = TRAP_ILLTRAP;
247 /* 0x02 - User Defined, Caught by default */
249 /* 0x03 - User Defined, userspace stack overflow */
251 info.si_code = SEGV_STACKFLOW;
253 printk(KERN_NOTICE EXC_0x03);
256 /* 0x04 - User Defined, Caught by default */
257 /* 0x05 - User Defined, Caught by default */
258 /* 0x06 - User Defined, Caught by default */
259 /* 0x07 - User Defined, Caught by default */
260 /* 0x08 - User Defined, Caught by default */
261 /* 0x09 - User Defined, Caught by default */
262 /* 0x0A - User Defined, Caught by default */
263 /* 0x0B - User Defined, Caught by default */
264 /* 0x0C - User Defined, Caught by default */
265 /* 0x0D - User Defined, Caught by default */
266 /* 0x0E - User Defined, Caught by default */
267 /* 0x0F - User Defined, Caught by default */
268 /* 0x10 HW Single step, handled here */
270 info.si_code = TRAP_STEP;
272 CHK_DEBUGGER_TRAP_MAYBE();
273 /* Check if this is a single step in kernel space */
274 if (fp->ipend & 0xffc0)
278 /* 0x11 - Trace Buffer Full, handled here */
280 info.si_code = TRAP_TRACEFLOW;
282 printk(KERN_NOTICE EXC_0x11);
285 /* 0x12 - Reserved, Caught by default */
286 /* 0x13 - Reserved, Caught by default */
287 /* 0x14 - Reserved, Caught by default */
288 /* 0x15 - Reserved, Caught by default */
289 /* 0x16 - Reserved, Caught by default */
290 /* 0x17 - Reserved, Caught by default */
291 /* 0x18 - Reserved, Caught by default */
292 /* 0x19 - Reserved, Caught by default */
293 /* 0x1A - Reserved, Caught by default */
294 /* 0x1B - Reserved, Caught by default */
295 /* 0x1C - Reserved, Caught by default */
296 /* 0x1D - Reserved, Caught by default */
297 /* 0x1E - Reserved, Caught by default */
298 /* 0x1F - Reserved, Caught by default */
299 /* 0x20 - Reserved, Caught by default */
300 /* 0x21 - Undefined Instruction, handled here */
302 info.si_code = ILL_ILLOPC;
304 printk(KERN_NOTICE EXC_0x21);
307 /* 0x22 - Illegal Instruction Combination, handled here */
309 info.si_code = ILL_ILLPARAOP;
311 printk(KERN_NOTICE EXC_0x22);
314 /* 0x23 - Data CPLB Protection Violation,
315 normal case is handled in _cplb_hdr */
317 info.si_code = ILL_CPLB_VI;
319 printk(KERN_NOTICE EXC_0x23);
322 /* 0x24 - Data access misaligned, handled here */
324 info.si_code = BUS_ADRALN;
326 printk(KERN_NOTICE EXC_0x24);
329 /* 0x25 - Unrecoverable Event, handled here */
331 info.si_code = ILL_ILLEXCPT;
333 printk(KERN_NOTICE EXC_0x25);
336 /* 0x26 - Data CPLB Miss, normal case is handled in _cplb_hdr,
337 error case is handled here */
339 info.si_code = BUS_ADRALN;
341 printk(KERN_NOTICE EXC_0x26);
344 /* 0x27 - Data CPLB Multiple Hits - Linux Trap Zero, handled here */
346 info.si_code = ILL_CPLB_MULHIT;
347 #ifdef CONFIG_DEBUG_HUNT_FOR_ZERO
349 printk(KERN_NOTICE "NULL pointer access (probably)\n");
352 printk(KERN_NOTICE EXC_0x27);
356 /* 0x28 - Emulation Watchpoint, handled here */
358 info.si_code = TRAP_WATCHPT;
361 CHK_DEBUGGER_TRAP_MAYBE();
362 /* Check if this is a watchpoint in kernel space */
363 if (fp->ipend & 0xffc0)
368 /* 0x29 - Instruction fetch access error (535 only) */
369 case VEC_ISTRU_VL: /* ADSP-BF535 only (MH) */
370 info.si_code = BUS_OPFETCH;
372 printk(KERN_NOTICE "BF535: VEC_ISTRU_VL\n");
376 /* 0x29 - Reserved, Caught by default */
378 /* 0x2A - Instruction fetch misaligned, handled here */
380 info.si_code = BUS_ADRALN;
382 printk(KERN_NOTICE EXC_0x2A);
385 /* 0x2B - Instruction CPLB protection Violation,
386 handled in _cplb_hdr */
388 info.si_code = ILL_CPLB_VI;
390 printk(KERN_NOTICE EXC_0x2B);
393 /* 0x2C - Instruction CPLB miss, handled in _cplb_hdr */
395 info.si_code = ILL_CPLB_MISS;
397 printk(KERN_NOTICE EXC_0x2C);
400 /* 0x2D - Instruction CPLB Multiple Hits, handled here */
401 case VEC_CPLB_I_MHIT:
402 info.si_code = ILL_CPLB_MULHIT;
403 #ifdef CONFIG_DEBUG_HUNT_FOR_ZERO
405 printk(KERN_NOTICE "Jump to address 0 - 0x0fff\n");
408 printk(KERN_NOTICE EXC_0x2D);
412 /* 0x2E - Illegal use of Supervisor Resource, handled here */
414 info.si_code = ILL_PRVOPC;
416 printk(KERN_NOTICE EXC_0x2E);
419 /* 0x2F - Reserved, Caught by default */
420 /* 0x30 - Reserved, Caught by default */
421 /* 0x31 - Reserved, Caught by default */
422 /* 0x32 - Reserved, Caught by default */
423 /* 0x33 - Reserved, Caught by default */
424 /* 0x34 - Reserved, Caught by default */
425 /* 0x35 - Reserved, Caught by default */
426 /* 0x36 - Reserved, Caught by default */
427 /* 0x37 - Reserved, Caught by default */
428 /* 0x38 - Reserved, Caught by default */
429 /* 0x39 - Reserved, Caught by default */
430 /* 0x3A - Reserved, Caught by default */
431 /* 0x3B - Reserved, Caught by default */
432 /* 0x3C - Reserved, Caught by default */
433 /* 0x3D - Reserved, Caught by default */
434 /* 0x3E - Reserved, Caught by default */
435 /* 0x3F - Reserved, Caught by default */
437 info.si_code = TRAP_ILLTRAP;
439 printk(KERN_EMERG "Caught Unhandled Exception, code = %08lx\n",
440 (fp->seqstat & SEQSTAT_EXCAUSE));
447 if (sig != SIGTRAP) {
449 dump_bfin_regs(fp, (void *)fp->retx);
451 /* Print out the trace buffer if it makes sense */
452 #ifndef CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE
453 if (trapnr == VEC_CPLB_I_M || trapnr == VEC_CPLB_M)
454 printk(KERN_NOTICE "No trace since you do not have "
455 "CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE enabled\n"
459 dump_bfin_trace_buffer();
460 show_stack(current, &stack);
461 if (oops_in_progress) {
462 #ifndef CONFIG_ACCESS_CHECK
463 printk(KERN_EMERG "Hey - dork - please turn on "
464 "CONFIG_ACCESS_CHECK\n");
466 panic("Kernel exception");
469 /* Ensure that bad return addresses don't end up in an infinite
470 * loop, due to speculative loads/reads
472 fp->pc = SAFE_USER_INSTRUCTION;
476 info.si_addr = (void *)fp->pc;
477 force_sig_info(sig, &info, current);
479 trace_buffer_restore(j);
483 /* Typical exception handling routines */
485 #define EXPAND_LEN ((1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 256 - 1)
487 void dump_bfin_trace_buffer(void)
489 #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON
492 #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND
496 trace_buffer_save(tflags);
498 printk(KERN_NOTICE "Hardware Trace:\n");
500 if (likely(bfin_read_TBUFSTAT() & TBUFCNT)) {
501 for (; bfin_read_TBUFSTAT() & TBUFCNT; i++) {
502 decode_address(buf, (unsigned long)bfin_read_TBUF());
503 printk(KERN_NOTICE "%4i Target : %s\n", i, buf);
504 decode_address(buf, (unsigned long)bfin_read_TBUF());
505 printk(KERN_NOTICE " Source : %s\n", buf);
509 #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND
510 if (trace_buff_offset)
511 index = trace_buff_offset/4 - 1;
515 j = (1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 128;
517 decode_address(buf, software_trace_buff[index]);
518 printk(KERN_NOTICE "%4i Target : %s\n", i, buf);
522 decode_address(buf, software_trace_buff[index]);
523 printk(KERN_NOTICE " Source : %s\n", buf);
532 trace_buffer_restore(tflags);
535 EXPORT_SYMBOL(dump_bfin_trace_buffer);
537 static void show_trace(struct task_struct *tsk, unsigned long *sp)
541 printk(KERN_NOTICE "\n" KERN_NOTICE "Call Trace:\n");
543 while (!kstack_end(sp)) {
546 * If the address is either in the text segment of the
547 * kernel, or in the region which contains vmalloc'ed
548 * memory, it *may* be the address of a calling
549 * routine; if so, print it so that someone tracing
550 * down the cause of the crash will be able to figure
551 * out the call path that was taken.
553 if (kernel_text_address(addr))
557 printk(KERN_NOTICE "\n");
560 void show_stack(struct task_struct *task, unsigned long *stack)
562 unsigned long *endstack, addr;
565 /* Cannot call dump_bfin_trace_buffer() here as show_stack() is
566 * called externally in some places in the kernel.
571 stack = (unsigned long *)task->thread.ksp;
573 stack = (unsigned long *)&stack;
576 addr = (unsigned long)stack;
577 endstack = (unsigned long *)PAGE_ALIGN(addr);
579 printk(KERN_NOTICE "Stack from %08lx:", (unsigned long)stack);
580 for (i = 0; i < kstack_depth_to_print; i++) {
581 if (stack + 1 > endstack)
584 printk("\n" KERN_NOTICE " ");
585 printk(" %08lx", *stack++);
589 show_trace(task, stack);
592 void dump_stack(void)
595 #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON
598 trace_buffer_save(tflags);
599 dump_bfin_trace_buffer();
600 show_stack(current, &stack);
601 trace_buffer_restore(tflags);
604 EXPORT_SYMBOL(dump_stack);
606 void dump_bfin_regs(struct pt_regs *fp, void *retaddr)
610 if (!oops_in_progress) {
611 if (current->pid && current->mm) {
612 printk(KERN_NOTICE "\n" KERN_NOTICE "CURRENT PROCESS:\n");
613 printk(KERN_NOTICE "COMM=%s PID=%d\n",
614 current->comm, current->pid);
616 printk(KERN_NOTICE "TEXT = 0x%p-0x%p DATA = 0x%p-0x%p\n"
617 KERN_NOTICE "BSS = 0x%p-0x%p USER-STACK = 0x%p\n"
619 (void *)current->mm->start_code,
620 (void *)current->mm->end_code,
621 (void *)current->mm->start_data,
622 (void *)current->mm->end_data,
623 (void *)current->mm->end_data,
624 (void *)current->mm->brk,
625 (void *)current->mm->start_stack);
627 printk (KERN_NOTICE "\n" KERN_NOTICE
628 "No Valid pid - Either things are really messed up,"
629 " or you are in the kernel\n");
632 printk(KERN_NOTICE "Kernel or interrupt exception\n");
635 if (retaddr >= (void *)FIXED_CODE_START && retaddr < (void *)physical_mem_end
636 #if L1_CODE_LENGTH != 0
637 /* FIXME: Copy the code out of L1 Instruction SRAM through dma
639 && !(retaddr >= (void *)L1_CODE_START
640 && retaddr < (void *)(L1_CODE_START + L1_CODE_LENGTH))
643 int i = ((unsigned int)retaddr & 0xFFFFFFF0) - 32;
644 unsigned short x = 0;
645 printk(KERN_NOTICE "return address: [0x%p]; contents of:", retaddr);
646 for (; i < ((unsigned int)retaddr & 0xFFFFFFF0) + 32; i += 2) {
648 printk("\n" KERN_NOTICE "0x%08x: ", i);
650 if (get_user(x, (unsigned short *)i))
652 #ifndef CONFIG_DEBUG_HWERR
653 /* If one of the last few instructions was a STI
654 * it is likely that the error occured awhile ago
655 * and we just noticed. This only happens in kernel
656 * context, which should mean an oops is happening
658 if (oops_in_progress && x >= 0x0040 && x <= 0x0047 && i <= 0)
659 panic("\n\nWARNING : You should reconfigure"
660 " the kernel to turn on\n"
661 " 'Hardware error interrupt"
663 " The rest of this error"
666 if (i == (unsigned int)retaddr)
673 printk("\n" KERN_NOTICE
674 "Cannot look at the [PC] for it is"
675 " in unreadable memory - sorry\n");
677 printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\n");
678 printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
679 (long)fp->seqstat, fp->ipend, fp->syscfg);
681 decode_address(buf, fp->rete);
682 printk(KERN_NOTICE " RETE: %s\n", buf);
683 decode_address(buf, fp->retn);
684 printk(KERN_NOTICE " RETN: %s\n", buf);
685 decode_address(buf, fp->retx);
686 printk(KERN_NOTICE " RETX: %s\n", buf);
687 decode_address(buf, fp->rets);
688 printk(KERN_NOTICE " RETS: %s\n", buf);
690 if ((long)fp->seqstat & SEQSTAT_EXCAUSE) {
691 decode_address(buf, bfin_read_DCPLB_FAULT_ADDR());
692 printk(KERN_NOTICE "DCPLB_FAULT_ADDR: %s\n", buf);
693 decode_address(buf, bfin_read_ICPLB_FAULT_ADDR());
694 printk(KERN_NOTICE "ICPLB_FAULT_ADDR: %s\n", buf);
697 printk(KERN_NOTICE "\n" KERN_NOTICE "PROCESSOR STATE:\n");
698 printk(KERN_NOTICE " R0 : %08lx R1 : %08lx R2 : %08lx R3 : %08lx\n",
699 fp->r0, fp->r1, fp->r2, fp->r3);
700 printk(KERN_NOTICE " R4 : %08lx R5 : %08lx R6 : %08lx R7 : %08lx\n",
701 fp->r4, fp->r5, fp->r6, fp->r7);
702 printk(KERN_NOTICE " P0 : %08lx P1 : %08lx P2 : %08lx P3 : %08lx\n",
703 fp->p0, fp->p1, fp->p2, fp->p3);
704 printk(KERN_NOTICE " P4 : %08lx P5 : %08lx FP : %08lx SP : %08lx\n",
705 fp->p4, fp->p5, fp->fp, (long)fp);
706 printk(KERN_NOTICE " LB0: %08lx LT0: %08lx LC0: %08lx\n",
707 fp->lb0, fp->lt0, fp->lc0);
708 printk(KERN_NOTICE " LB1: %08lx LT1: %08lx LC1: %08lx\n",
709 fp->lb1, fp->lt1, fp->lc1);
710 printk(KERN_NOTICE " B0 : %08lx L0 : %08lx M0 : %08lx I0 : %08lx\n",
711 fp->b0, fp->l0, fp->m0, fp->i0);
712 printk(KERN_NOTICE " B1 : %08lx L1 : %08lx M1 : %08lx I1 : %08lx\n",
713 fp->b1, fp->l1, fp->m1, fp->i1);
714 printk(KERN_NOTICE " B2 : %08lx L2 : %08lx M2 : %08lx I2 : %08lx\n",
715 fp->b2, fp->l2, fp->m2, fp->i2);
716 printk(KERN_NOTICE " B3 : %08lx L3 : %08lx M3 : %08lx I3 : %08lx\n",
717 fp->b3, fp->l3, fp->m3, fp->i3);
718 printk(KERN_NOTICE "A0.w: %08lx A0.x: %08lx A1.w: %08lx A1.x: %08lx\n",
719 fp->a0w, fp->a0x, fp->a1w, fp->a1x);
721 printk(KERN_NOTICE "USP : %08lx ASTAT: %08lx\n",
724 printk(KERN_NOTICE "\n");
727 #ifdef CONFIG_SYS_BFIN_SPINLOCK_L1
728 asmlinkage int sys_bfin_spinlock(int *spinlock)__attribute__((l1_text));
731 asmlinkage int sys_bfin_spinlock(int *spinlock)
737 ret = get_user(tmp, spinlock);
742 put_user(tmp, spinlock);
748 int bfin_request_exception(unsigned int exception, void (*handler)(void))
750 void (*curr_handler)(void);
752 if (exception > 0x3F)
755 curr_handler = ex_table[exception];
757 if (curr_handler != ex_replaceable)
760 ex_table[exception] = handler;
764 EXPORT_SYMBOL(bfin_request_exception);
766 int bfin_free_exception(unsigned int exception, void (*handler)(void))
768 void (*curr_handler)(void);
770 if (exception > 0x3F)
773 curr_handler = ex_table[exception];
775 if (curr_handler != handler)
778 ex_table[exception] = ex_replaceable;
782 EXPORT_SYMBOL(bfin_free_exception);
784 void panic_cplb_error(int cplb_panic, struct pt_regs *fp)
786 switch (cplb_panic) {
787 case CPLB_NO_UNLOCKED:
788 printk(KERN_EMERG "All CPLBs are locked\n");
792 case CPLB_NO_ADDR_MATCH:
794 case CPLB_UNKNOWN_ERR:
795 printk(KERN_EMERG "Unknown CPLB Exception\n");
799 oops_in_progress = 1;
801 printk(KERN_EMERG "DCPLB_FAULT_ADDR=%p\n", (void *)bfin_read_DCPLB_FAULT_ADDR());
802 printk(KERN_EMERG "ICPLB_FAULT_ADDR=%p\n", (void *)bfin_read_ICPLB_FAULT_ADDR());
803 dump_bfin_regs(fp, (void *)fp->retx);
805 panic("Unrecoverable event\n");