Home
last modified time | relevance | path

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

/Linux-v4.19/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()
/Linux-v4.19/arch/x86/ia32/
Dia32_signal.c105 get_user_ex(tmp, &sc->fpstate); in ia32_restore_sigcontext()
175 void __user *fpstate, in ia32_setup_sigcontext() argument
202 put_user_ex(ptr_to_compat(fpstate), &sc->fpstate); in ia32_setup_sigcontext()
217 void __user **fpstate) in get_sigframe() argument
238 *fpstate = (struct _fpstate_32 __user *) sp; in get_sigframe()
239 if (copy_fpstate_to_sigframe(*fpstate, (void __user *)fx_aligned, in get_sigframe()
257 void __user *fpstate = NULL; in ia32_setup_frame() local
270 frame = get_sigframe(ksig, regs, sizeof(*frame), &fpstate); in ia32_setup_frame()
278 if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in ia32_setup_frame()
335 void __user *fpstate = NULL; in ia32_setup_rt_frame() local
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/arch/x86/kernel/
Dsignal.c149 get_user_ex(buf_val, &sc->fpstate); in restore_sigcontext()
160 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in setup_sigcontext() argument
209 put_user_ex(fpstate, &sc->fpstate); in setup_sigcontext()
242 void __user **fpstate) in get_sigframe() argument
271 *fpstate = (void __user *)sp; in get_sigframe()
285 copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size) < 0) in get_sigframe()
321 void __user *fpstate = NULL; in __setup_frame() local
323 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fpstate); in __setup_frame()
331 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in __setup_frame()
384 void __user *fpstate = NULL; in __setup_rt_frame() local
[all …]
/Linux-v4.19/arch/x86/include/asm/fpu/
Dinternal.h37 extern int dump_fpu(struct pt_regs *ptregs, struct user_i387_struct *fpstate);
431 static inline void __copy_kernel_to_fpregs(union fpregs_state *fpstate, u64 mask) in __copy_kernel_to_fpregs() argument
434 copy_kernel_to_xregs(&fpstate->xsave, mask); in __copy_kernel_to_fpregs()
437 copy_kernel_to_fxregs(&fpstate->fxsave); in __copy_kernel_to_fpregs()
439 copy_kernel_to_fregs(&fpstate->fsave); in __copy_kernel_to_fpregs()
443 static inline void copy_kernel_to_fpregs(union fpregs_state *fpstate) in copy_kernel_to_fpregs() argument
455 : : [addr] "m" (fpstate)); in copy_kernel_to_fpregs()
458 __copy_kernel_to_fpregs(fpstate, -1); in copy_kernel_to_fpregs()
/Linux-v4.19/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
/Linux-v4.19/arch/unicore32/include/asm/
Dsuspend.h23 struct fp_state fpstate __attribute__((aligned(8))); member
Dthread_info.h78 struct fp_state fpstate __attribute__((aligned(8))); member
/Linux-v4.19/arch/x86/include/asm/
Dsighandling.h17 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
/Linux-v4.19/arch/unicore32/kernel/
Dasm-offsets.c49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
104 fpstate)); in main()
Dprocess.c214 memset(&thread->fpstate, 0, sizeof(struct fp_state)); in flush_thread()
271 memcpy(fp, &thread->fpstate, sizeof(*fp)); in dump_fpu()
/Linux-v4.19/arch/arm/nwfpe/
Dfpa11.h25 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
Dfpmodule.c65 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
/Linux-v4.19/arch/arm/kernel/
Dasm-offsets.c66 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
77 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
Dptrace.c312 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs()
326 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs()
620 &task_thread_info(target)->fpstate, in fpa_get()
634 &thread->fpstate, in fpa_set()
Dprocess.c216 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread()
291 memcpy(fp, &thread->fpstate.soft, sizeof (*fp)); in dump_fpu()
/Linux-v4.19/arch/m68k/include/asm/
Dprocessor.h95 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
/Linux-v4.19/arch/x86/kernel/fpu/
Dsignal.c24 void __user *fpstate, in check_for_xstate() argument
47 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)) in check_for_xstate()
/Linux-v4.19/arch/arm/include/asm/
Dthread_info.h63 union fp_state fpstate __attribute__((aligned(8))); member
/Linux-v4.19/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3222 esp_at_signal = 1342630420, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 0,
3575 esp_at_signal = 1342630864, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 0,