Home
last modified time | relevance | path

Searched refs:fsr (Results 1 – 25 of 52) sorted by relevance

123

/arch/arm/mm/
Dfault.c35 static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr) in notify_page_fault() argument
42 if (kprobe_running() && kprobe_fault_handler(regs, fsr)) in notify_page_fault()
50 static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr) in notify_page_fault() argument
133 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault() argument
151 die("Oops", regs, fsr); in __do_kernel_fault()
162 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument
174 tsk->comm, sig, addr, fsr); in __do_user_fault()
181 tsk->thread.error_code = fsr; in __do_user_fault()
190 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in do_bad_area() argument
200 __do_user_fault(tsk, addr, fsr, SIGSEGV, SEGV_MAPERR, regs); in do_bad_area()
[all …]
Dfault.h18 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
20 return fsr & FSR_FS5_0; in fsr_fs()
25 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
27 return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6; in fsr_fs()
31 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
Dabort-macro.S13 .macro do_thumb_abort, fsr, pc, psr, tmp
22 orreq \fsr, \fsr, #1 << 11 @ yes.
Dabort-ev4t.S23 do_thumb_abort fsr=r1, pc=r4, psr=r5, tmp=r3
Dabort-ev5t.S23 do_thumb_abort fsr=r1, pc=r4, psr=r5, tmp=r3
/arch/microblaze/kernel/
Dexceptions.c76 int fsr, int addr) in full_exception() argument
84 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception()
129 if (fsr & FSR_IO) in full_exception()
130 fsr = FPE_FLTINV; in full_exception()
131 else if (fsr & FSR_OF) in full_exception()
132 fsr = FPE_FLTOVF; in full_exception()
133 else if (fsr & FSR_UF) in full_exception()
134 fsr = FPE_FLTUND; in full_exception()
135 else if (fsr & FSR_DZ) in full_exception()
136 fsr = FPE_FLTDIV; in full_exception()
[all …]
/arch/unicore32/mm/
Dfault.c31 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
34 return (fsr & 31) + ((fsr & (3 << 5)) >> 5); in fsr_fs()
92 unsigned int fsr, struct pt_regs *regs) in __do_kernel_fault() argument
110 die("Oops", regs, fsr); in __do_kernel_fault()
120 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument
126 tsk->thread.error_code = fsr; in __do_user_fault()
135 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in do_bad_area() argument
145 __do_user_fault(tsk, addr, fsr, SIGSEGV, SEGV_MAPERR, regs); in do_bad_area()
147 __do_kernel_fault(mm, addr, fsr, regs); in do_bad_area()
158 static inline bool access_error(unsigned int fsr, struct vm_area_struct *vma) in access_error() argument
[all …]
/arch/sparc/math-emu/
Dmath_32.c133 static int do_one_mathemu(u32 insn, unsigned long *fsr, unsigned long *fregs);
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
201 fpt->thread.fsr &= ~(0x3000 | FSR_CEXC_MASK); in do_mathemu()
203 fpt->thread.fsr &= ~0x3000; in do_mathemu()
219 unsigned long fsr = *pfsr; in record_exception() local
223 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
227 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
248 fsr &= ~(FSR_CEXC_MASK); in record_exception()
249 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception()
[all …]
Dmath_64.c103 u64 fsr = current_thread_info()->xfsr[0]; in record_exception() local
107 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
111 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
132 fsr &= ~(FSR_CEXC_MASK); in record_exception()
133 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception()
142 fsr |= ((long)eflag << FSR_AEXC_SHIFT); in record_exception()
146 fsr |= (1UL << 14); in record_exception()
148 current_thread_info()->xfsr[0] = fsr; in record_exception()
/arch/sparc/include/asm/
Dpsr.h55 unsigned int fsr = 0; in get_fsr() local
60 : "=r" (fsr) in get_fsr()
63 return fsr; in get_fsr()
Dsfp-machine_32.h185 #define FP_ROUNDMODE ((current->thread.fsr >> 30) & 0x3)
187 #define FP_ROUNDMODE ((last_task_used_math->thread.fsr >> 30) & 0x3)
201 #define FP_INHIBIT_RESULTS ((current->thread.fsr >> 23) & _fex)
203 #define FP_INHIBIT_RESULTS ((last_task_used_math->thread.fsr >> 23) & _fex)
207 #define FP_TRAPPING_EXCEPTIONS ((current->thread.fsr >> 23) & 0x1f)
209 #define FP_TRAPPING_EXCEPTIONS ((last_task_used_math->thread.fsr >> 23) & 0x1f)
Dswitch_to_32.h21 fpsave(&(prv)->thread.float_regs[0], &(prv)->thread.fsr, \
103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
/arch/sparc/kernel/
Dtraps_32.c198 fpsave(&fptask->thread.float_regs[0], &fptask->thread.fsr, in do_fpd_trap()
203 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
214 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
230 unsigned long fsr; local
251 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
254 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
257 switch ((fpt->thread.fsr & 0x1c000)) {
282 fpload(&current->thread.float_regs[0], &current->thread.fsr);
305 fsr = fpt->thread.fsr;
311 if ((fsr & 0x1c000) == (1 << 14)) {
[all …]
Dsigutil_32.c21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
29 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
73 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
Dptrace_64.c377 unsigned long fprs, fsr, gsr; in fpregs64_get() local
409 fsr = task_thread_info(target)->xfsr[0]; in fpregs64_get()
412 fsr = gsr = 0; in fpregs64_get()
417 &fsr, in fpregs64_get()
757 compat_ulong_t fsr; in fpregs32_get() local
765 fsr = task_thread_info(target)->xfsr[0]; in fpregs32_get()
768 fsr = 0; in fpregs32_get()
782 &fsr, in fpregs32_get()
825 compat_ulong_t fsr; in fpregs32_set() local
829 &fsr, in fpregs32_set()
[all …]
Dprocess_32.c192 fpsave(&tsk->thread.float_regs[0], &tsk->thread.fsr,
213 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
317 fpsave(&p->thread.float_regs[0], &p->thread.fsr,
425 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
435 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
446 fpregs->pr_fsr = current->thread.fsr;
Dptrace_32.c234 &target->thread.fsr, in fpregs32_get()
276 &target->thread.fsr, in fpregs32_set()
331 unsigned long fsr; member
392 &fps->fsr); in arch_ptrace()
413 &fps->fsr); in arch_ptrace()
/arch/arm/mach-bcm/
Dbcm_5301x.c24 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr, in bcm5301x_abort_handler() argument
33 if (fsr == (FSR_EXTERNAL | FSR_READ | FSR_IMPRECISE)) in bcm5301x_abort_handler()
/arch/arm64/kvm/
Dinject_fault.c93 u32 *far, *fsr; in inject_abt32() local
99 fsr = &vcpu_cp15(vcpu, c5_IFSR); in inject_abt32()
103 fsr = &vcpu_cp15(vcpu, c5_DFSR); in inject_abt32()
113 *fsr = 1 << 9 | 0x34; in inject_abt32()
115 *fsr = 0x14; in inject_abt32()
/arch/sparc/lib/
DVISsave.S32 stx %fsr, [%g6 + TI_XFSR]
39 stx %fsr, [%g6 + TI_XFSR]
56 stx %fsr, [%g2 + TI_XFSR]
/arch/unicore32/include/asm/
Dtraps.h19 extern void do_DataAbort(unsigned long addr, unsigned int fsr,
/arch/arm/plat-iop/
Dpci.c173 iop3xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in iop3xx_pci_abort() argument
176 addr, fsr, regs->ARM_pc, regs->ARM_lr); in iop3xx_pci_abort()
182 if (fsr & (1 << 10)) in iop3xx_pci_abort()
/arch/ia64/include/asm/
Dfpswa.h59 unsigned long *fsr, unsigned long *isr, unsigned long *preds,
/arch/arm64/include/asm/
Dkprobes.h55 int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);
/arch/microblaze/include/asm/
Dexceptions.h67 int fsr, int addr);

123