Home
last modified time | relevance | path

Searched refs:fpstate (Results 1 – 21 of 21) sorted by relevance

/arch/m68k/kernel/
Dsignal.c334 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local
351 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state()
353 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state()
355 context_size = fpstate[1]; in rt_restore_fpu_state()
358 (fpstate[0] != fpu_version)) in rt_restore_fpu_state()
373 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
374 fpstate[3] == 0x60 || in rt_restore_fpu_state()
375 fpstate[3] == 0xe0)) in rt_restore_fpu_state()
378 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
379 fpstate[3] == 0x05 || in rt_restore_fpu_state()
[all …]
Dprocess.c163 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread()
165 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread()
188 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
Dasm-offsets.c39 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); in main()
/arch/x86/ia32/
Dia32_signal.c100 get_user_ex(tmp, &sc->fpstate); in ia32_restore_sigcontext()
181 void __user *fpstate, in ia32_setup_sigcontext() argument
208 put_user_ex(ptr_to_compat(fpstate), &sc->fpstate); in ia32_setup_sigcontext()
223 void __user **fpstate) in get_sigframe() argument
240 *fpstate = (struct _fpstate_32 __user *) sp; in get_sigframe()
241 if (copy_fpstate_to_sigframe(*fpstate, (void __user *)fx_aligned, in get_sigframe()
258 void __user *fpstate = NULL; in ia32_setup_frame() local
271 frame = get_sigframe(ksig, regs, sizeof(*frame), &fpstate); in ia32_setup_frame()
279 if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in ia32_setup_frame()
336 void __user *fpstate = NULL; in ia32_setup_rt_frame() local
[all …]
/arch/x86/um/
Dsignal.c209 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user()
214 err = convert_fxsr_from_user(&fpx, (void *)sc.fpstate); in copy_sc_from_user()
228 err = copy_from_user(regs->regs.fp, (void *)sc.fpstate, in copy_sc_from_user()
284 sc.fpstate = (unsigned long)to_fp; in copy_sc_to_user()
303 err = convert_fxsr_to_user(&to_fp->fpstate, &fpx); in copy_sc_to_user()
307 err |= __put_user(fpx.swd, &to_fp->fpstate.status); in copy_sc_to_user()
308 err |= __put_user(X86_FXSR_MAGIC, &to_fp->fpstate.magic); in copy_sc_to_user()
312 if (copy_to_user(&to_fp->fpstate._fxsr_env[0], &fpx, in copy_sc_to_user()
343 struct _xstate fpstate; member
356 struct _xstate fpstate; member
[all …]
/arch/x86/kernel/
Dsignal.c139 get_user_ex(buf_val, &sc->fpstate); in restore_sigcontext()
159 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in setup_sigcontext() argument
208 put_user_ex(fpstate, (unsigned long __user *)&sc->fpstate); in setup_sigcontext()
241 void __user **fpstate) in get_sigframe() argument
278 *fpstate = (void __user *)sp; in get_sigframe()
297 ret = copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size); in get_sigframe()
334 void __user *fpstate = NULL; in __setup_frame() local
336 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fpstate); in __setup_frame()
344 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in __setup_frame()
397 void __user *fpstate = NULL; in __setup_rt_frame() local
[all …]
/arch/x86/include/uapi/asm/
Dsigcontext.h193 struct _fpstate fpstate; member
230 __u32 fpstate; /* Zero when no FPU/extended context */ member
273 __u64 fpstate; /* Zero when no FPU/extended context */ member
320 struct _fpstate __user *fpstate; member
380 struct _fpstate __user *fpstate; /* Zero when no FPU context */ member
/arch/x86/include/asm/fpu/
Dinternal.h36 extern int dump_fpu(struct pt_regs *ptregs, struct user_i387_struct *fpstate);
436 static inline void __copy_kernel_to_fpregs(union fpregs_state *fpstate, u64 mask) in __copy_kernel_to_fpregs() argument
439 copy_kernel_to_xregs(&fpstate->xsave, mask); in __copy_kernel_to_fpregs()
442 copy_kernel_to_fxregs(&fpstate->fxsave); in __copy_kernel_to_fpregs()
444 copy_kernel_to_fregs(&fpstate->fsave); in __copy_kernel_to_fpregs()
448 static inline void copy_kernel_to_fpregs(union fpregs_state *fpstate) in copy_kernel_to_fpregs() argument
460 : : [addr] "m" (fpstate)); in copy_kernel_to_fpregs()
463 __copy_kernel_to_fpregs(fpstate, -1); in copy_kernel_to_fpregs()
/arch/unicore32/include/asm/
Dsuspend.h20 struct fp_state fpstate __attribute__((aligned(8))); member
Dthread_info.h75 struct fp_state fpstate __attribute__((aligned(8))); member
/arch/x86/include/asm/
Dsighandling.h17 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
/arch/unicore32/kernel/
Dasm-offsets.c46 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
101 fpstate)); in main()
Dprocess.c211 memset(&thread->fpstate, 0, sizeof(struct fp_state)); in flush_thread()
268 memcpy(fp, &thread->fpstate, sizeof(*fp)); in dump_fpu()
/arch/arm/nwfpe/
Dfpa11.h13 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
Dfpmodule.c53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
/arch/m68k/include/asm/
Dprocessor.h89 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
/arch/arm/include/asm/
Dthread_info.h63 union fp_state fpstate __attribute__((aligned(8))); member
/arch/arm/kernel/
Dptrace.c302 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs()
316 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs()
610 &task_thread_info(target)->fpstate, in fpa_get()
624 &thread->fpstate, in fpa_set()
Dasm-offsets.c65 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
76 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
Dprocess.c213 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread()
292 memcpy(fp, &thread->fpstate.soft, sizeof (*fp)); in dump_fpu()
/arch/x86/kernel/fpu/
Dsignal.c25 void __user *fpstate, in check_for_xstate() argument
48 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)) in check_for_xstate()