Home
last modified time | relevance | path

Searched refs:xstate (Results 1 – 16 of 16) sorted by relevance

/arch/sh/kernel/cpu/sh4/
Dfpu.c88 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
138 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
234 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
236 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
252 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
253 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
254 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
264 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
266 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
268 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/arch/sh/kernel/
Dprocess.c13 if (src->thread.xstate) { in arch_dup_task_struct()
14 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
16 if (!dst->thread.xstate) in arch_dup_task_struct()
18 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
26 if (tsk->thread.xstate) { in free_thread_xstate()
27 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
28 tsk->thread.xstate = NULL; in free_thread_xstate()
Dtraps_64.c620 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
624 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
625 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
628 current->thread.xstate->hardfpu.fp_regs[destreg] = bufhi; in misaligned_fpu_load()
629 current->thread.xstate->hardfpu.fp_regs[destreg+1] = buflo; in misaligned_fpu_load()
631 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
632 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
692 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
696 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
697 bufhi = current->thread.xstate->hardfpu.fp_regs[srcreg+1]; in misaligned_fpu_store()
[all …]
Dptrace_32.c203 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
206 &target->thread.xstate->softfpu, 0, -1); in fpregs_get()
224 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
227 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
405 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
440 ((unsigned long *)child->thread.xstate) in arch_ptrace()
Dptrace_64.c91 tmp = ((long *)task->thread.xstate)[addr / sizeof(unsigned long)]; in get_fpu_long()
126 ((long *)task->thread.xstate)[addr / sizeof(unsigned long)] = data; in put_fpu_long()
228 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
245 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
Dprocess_32.c227 prefetch(next_t->xstate); in __switch_to()
Dsignal_32.c153 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
178 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
Dsignal_64.c292 err |= __copy_from_user(&current->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
317 err |= __copy_to_user(&sc->sc_fpregs[0], &current->thread.xstate->hardfpu, in setup_sigcontext_fpu()
Dprocess_64.c392 memcpy(fpu, &tsk->thread.xstate->hardfpu, sizeof(*fpu)); in dump_fpu()
/arch/sh/kernel/cpu/
Dfpu.c18 if (!tsk->thread.xstate) { in init_fpu()
19 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
21 if (!tsk->thread.xstate) in init_fpu()
26 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu()
30 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu()
/arch/sh/kernel/cpu/sh2a/
Dfpu.c55 : "0" ((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
87 : "0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
459 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
461 denormal_to_double (&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
476 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
477 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
478 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
488 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
490 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
495 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/arch/sh/kernel/cpu/sh5/
Dfpu.c57 : "r" (&tsk->thread.xstate->hardfpu) in save_fpu()
100 : "r" (&tsk->thread.xstate->hardfpu) in restore_fpu()
/arch/x86/include/asm/
Dxsave.h99 struct xsave_struct *xstate = ((__force struct xsave_struct *)buf); in xrestore_user() local
114 : "D" (xstate), "a" (lmask), "d" (hmask), "0" (0) in xrestore_user()
/arch/sh/include/asm/
Dprocessor_32.h113 union thread_xstate *xstate; member
Dprocessor_64.h129 union thread_xstate *xstate; member
/arch/sh/math-emu/
Dmath.c555 if ((tsk->thread.xstate->softfpu.fpscr & (1 << 17))) { in ieee_fpe_handler()
557 denormal_to_double (&tsk->thread.xstate->softfpu, in ieee_fpe_handler()
559 tsk->thread.xstate->softfpu.fpscr &= in ieee_fpe_handler()
620 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()