Lines Matching refs:ptregs
165 do_page_fault(&fp->ptregs, addr, errorcode); in access_error060()
170 send_fault_sig(&fp->ptregs); in access_error060()
172 send_fault_sig(&fp->ptregs) > 0) { in access_error060()
173 pr_err("pc=%#lx, fa=%#lx\n", fp->ptregs.pc, in access_error060()
274 send_fault_sig(&fp->ptregs); in do_040writebacks()
329 if (do_page_fault(&fp->ptregs, addr, errorcode)) { in access_error040()
331 if (user_mode(&fp->ptregs)){ in access_error040()
354 if (send_fault_sig(&fp->ptregs) >= 0) in access_error040()
381 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030()
383 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030()
388 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030()
403 if (fp->ptregs.sr & PS_S) { in bus_error030()
412 fp->ptregs.pc); in bus_error030()
415 if((fp->ptregs.pc >= (unsigned long)&_sun3_map_test_start) && in bus_error030()
416 (fp->ptregs.pc <= (unsigned long)&_sun3_map_test_end)) { in bus_error030()
417 send_fault_sig(&fp->ptregs); in bus_error030()
424 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030()
428 die_if_kernel("Oops", &fp->ptregs,0); in bus_error030()
459 fp->ptregs.pc); in bus_error030()
460 die_if_kernel ("Oops", &fp->ptregs, buserr_type); in bus_error030()
470 do_page_fault (&fp->ptregs, addr, errorcode); in bus_error030()
479 if (fp->ptregs.format == 0xA) in bus_error030()
480 addr = fp->ptregs.pc + 4; in bus_error030()
488 do_page_fault (&fp->ptregs, addr, 0); in bus_error030()
512 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030()
514 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030()
519 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030()
549 if (ssw & 4 && !search_exception_tables(fp->ptregs.pc)) { in bus_error030()
553 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030()
558 if (do_page_fault (&fp->ptregs, addr, errorcode) < 0) in bus_error030()
562 if (!(ssw & RM) && send_fault_sig(&fp->ptregs) > 0) in bus_error030()
568 fp->ptregs.pc); in bus_error030()
569 die_if_kernel("Oops",&fp->ptregs,mmusr); in bus_error030()
579 fp->ptregs.pc, ssw); in bus_error030()
596 die_if_kernel("Oops",&fp->ptregs,mmusr); in bus_error030()
615 if (fp->ptregs.sr & PS_S) { in bus_error030()
616 pr_err("Instruction fault at %#010lx\n", fp->ptregs.pc); in bus_error030()
619 die_if_kernel("Oops",&fp->ptregs,0); in bus_error030()
625 if (fp->ptregs.format == 10) in bus_error030()
626 addr = fp->ptregs.pc + 4; in bus_error030()
653 do_page_fault (&fp->ptregs, addr, 0); in bus_error030()
656 addr, fp->ptregs.pc); in bus_error030()
658 die_if_kernel("Oops",&fp->ptregs,mmusr); in bus_error030()
714 need_page_fault = cf_tlb_miss(&fp->ptregs, 0, 0, 0); in access_errorcf()
715 addr = fp->ptregs.pc; in access_errorcf()
718 need_page_fault = cf_tlb_miss(&fp->ptregs, 0, 0, 1); in access_errorcf()
719 addr = fp->ptregs.pc + sizeof(long); in access_errorcf()
722 need_page_fault = cf_tlb_miss(&fp->ptregs, 1, 1, 0); in access_errorcf()
725 need_page_fault = cf_tlb_miss(&fp->ptregs, 0, 1, 0); in access_errorcf()
748 do_page_fault(&fp->ptregs, addr, err_code); in access_errorcf()
756 if (user_mode(&fp->ptregs)) in buserr_c()
759 pr_debug("*** Bus Error *** Format is %x\n", fp->ptregs.format); in buserr_c()
764 fs = (fp->ptregs.vector & 0x3) | in buserr_c()
765 ((fp->ptregs.vector & 0xc00) >> 8); in buserr_c()
783 switch (fp->ptregs.format) { in buserr_c()
801 die_if_kernel("bad frame format",&fp->ptregs,0); in buserr_c()
969 int vector = (fp->ptregs.vector >> 2) & 0xff; in bad_super_trap()
975 fp->ptregs.format); in bad_super_trap()
978 vector, fp->ptregs.format); in bad_super_trap()
986 (fp->ptregs.format) == 0xA ? in bad_super_trap()
987 fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2); in bad_super_trap()
990 (fp->ptregs.format) == 0xA ? in bad_super_trap()
991 fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bad_super_trap()
996 fp->ptregs.pc); in bad_super_trap()
999 die_if_kernel("BAD KERNEL TRAP", &fp->ptregs, 0); in bad_super_trap()
1006 int vector = (fp->ptregs.vector >> 2) & 0xff; in trap_c()
1008 if (fp->ptregs.sr & PS_S) { in trap_c()
1016 if (fixup_exception(&fp->ptregs)) in trap_c()
1104 switch (fp->ptregs.format) { in trap_c()
1106 addr = (void __user *) fp->ptregs.pc; in trap_c()