Home
last modified time | relevance | path

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

/arch/sh/kernel/cpu/sh4/
Dfpu.c84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
260 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
262 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
264 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/arch/sh/kernel/
Dprocess.c29 if (src->thread.xstate) { in arch_dup_task_struct()
30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
32 if (!dst->thread.xstate) in arch_dup_task_struct()
34 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
42 if (tsk->thread.xstate) { in free_thread_xstate()
43 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
44 tsk->thread.xstate = NULL; in free_thread_xstate()
Dptrace_32.c178 return membuf_write(&to, target->thread.xstate, in fpregs_get()
197 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
200 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
370 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
405 ((unsigned long *)child->thread.xstate) in arch_ptrace()
Dprocess_32.c162 prefetch(next_t->xstate); in __switch_to()
Dsignal_32.c85 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
109 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
/arch/sh/kernel/cpu/sh2a/
Dfpu.c52 : "0" ((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
84 : "0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
456 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
458 denormal_to_double (&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
473 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
474 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
475 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
485 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
487 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
492 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/arch/sh/kernel/cpu/
Dfpu.c22 if (!tsk->thread.xstate) { in init_fpu()
23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
25 if (!tsk->thread.xstate) in init_fpu()
30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu()
34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu()
/arch/x86/include/asm/fpu/
Dinternal.h265 static inline void os_xrstor_booting(struct xregs_state *xstate) in os_xrstor_booting() argument
275 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_booting()
277 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_booting()
292 static inline void os_xsave(struct xregs_state *xstate) in os_xsave() argument
301 XSTATE_XSAVE(xstate, lmask, hmask, err); in os_xsave()
312 static inline void os_xrstor(struct xregs_state *xstate, u64 mask) in os_xrstor() argument
317 XSTATE_XRESTORE(xstate, lmask, hmask); in os_xrstor()
362 struct xregs_state *xstate = ((__force struct xregs_state *)buf); in xrstor_from_user_sigframe() local
368 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in xrstor_from_user_sigframe()
378 static inline int os_xrstor_safe(struct xregs_state *xstate, u64 mask) in os_xrstor_safe() argument
[all …]
/arch/x86/kernel/fpu/
DMakefile6 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
Dxstate.c964 static void copy_feature(bool from_xstate, struct membuf *to, void *xstate, in copy_feature() argument
967 membuf_write(to, from_xstate ? xstate : init_xstate, size); in copy_feature()
1250 void xsaves(struct xregs_state *xstate, u64 mask) in xsaves() argument
1257 XSTATE_OP(XSAVES, xstate, (u32)mask, (u32)(mask >> 32), err); in xsaves()
1275 void xrstors(struct xregs_state *xstate, u64 mask) in xrstors() argument
1282 XSTATE_OP(XRSTORS, xstate, (u32)mask, (u32)(mask >> 32), err); in xrstors()
/arch/sh/include/asm/
Dprocessor_32.h108 union thread_xstate *xstate; member
/arch/sh/math-emu/
Dmath.c495 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()