abort.c (368B)
1 #include <kernel.h> 2 3 void 4 abort_handler(struct regs *regs, int data) 5 { 6 int i; 7 8 if (data) 9 kprintf("\n-DATA ABORT-\n"); 10 else 11 kprintf("\n-PREFETCH ABORT-\n"); 12 13 for (i = 0; i <= 12; i++) 14 kprintf("r%d: %p\n", i, regs->r[i]); 15 kprintf("sp: %p\n", regs->sp); 16 kprintf("lr: %p\n", regs->lr); 17 kprintf("pc: %p\n", regs->pc - 8); 18 kprintf("cpsr: %p\n", regs->cpsr); 19 }