Home
last modified time | relevance | path

Searched refs:fpcsr (Results 1 – 9 of 9) sorted by relevance

/linux/arch/openrisc/kernel/
H A Dtraps.c186 unsigned long fpcsr; in do_fpe_trap() local
189 fpcsr = current->thread.fpcsr; in do_fpe_trap()
191 if (fpcsr & SPR_FPCSR_IVF) in do_fpe_trap()
193 else if (fpcsr & SPR_FPCSR_OVF) in do_fpe_trap()
195 else if (fpcsr & SPR_FPCSR_UNF) in do_fpe_trap()
197 else if (fpcsr & SPR_FPCSR_DZF) in do_fpe_trap()
199 else if (fpcsr & SPR_FPCSR_IXF) in do_fpe_trap()
203 current->thread.fpcsr &= ~SPR_FPCSR_ALLF; in do_fpe_trap()
H A Dsignal.c48 err = __copy_from_user(&current->thread.fpcsr, &sc->fpcsr, sizeof(unsigned long)); in restore_fp_state()
65 err = __copy_to_user(&sc->fpcsr, &current->thread.fpcsr, sizeof(unsigned long)); in save_fp_state()
H A Dptrace.c101 return membuf_store(&to, target->thread.fpcsr); in fpregs_get()
111 &target->thread.fpcsr, 0, 4); in fpregs_set()
/linux/arch/openrisc/include/asm/
H A Dfpu.h10 task->thread.fpcsr = mfspr(SPR_FPCSR); in save_fpu()
15 mtspr(SPR_FPCSR, task->thread.fpcsr); in restore_fpu()
H A Dprocessor.h47 long fpcsr; /* Floating point control status register. */ member
/linux/arch/openrisc/include/uapi/asm/
H A Dsigcontext.h32 unsigned long fpcsr; member
H A Dptrace.h35 unsigned long fpcsr; member
/linux/arch/mips/kernel/
H A Dsignal-common.h28 extern int fpcsr_pending(unsigned int __user *fpcsr);
H A Dsignal.c497 int fpcsr_pending(unsigned int __user *fpcsr) in fpcsr_pending() argument
502 err = __get_user(csr, fpcsr); in fpcsr_pending()
510 err |= __put_user(csr, fpcsr); in fpcsr_pending()