Lines Matching refs:fcsr
427 static void force_fcsr_sig(unsigned long fcsr, in force_fcsr_sig() argument
432 if (fcsr & FPU_CSR_INV_X) in force_fcsr_sig()
434 else if (fcsr & FPU_CSR_DIV_X) in force_fcsr_sig()
436 else if (fcsr & FPU_CSR_OVF_X) in force_fcsr_sig()
438 else if (fcsr & FPU_CSR_UDF_X) in force_fcsr_sig()
440 else if (fcsr & FPU_CSR_INE_X) in force_fcsr_sig()
446 static int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr) in process_fpemu_return() argument
455 force_fcsr_sig(fcsr, fault_addr, current); in process_fpemu_return()
481 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr) in do_fpe() argument
492 write_fcsr(LOONGARCH_FCSR0, fcsr & ~mask_fcsr_x(fcsr)); in do_fpe()
501 process_fpemu_return(sig, fault_addr, fcsr); in do_fpe()