Home
last modified time | relevance | path

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

/arch/x86/include/asm/
Dsigcontext.h130 void __user *fpstate; /* zero when no FPU/extended context */ member
158 struct _fpstate __user *fpstate; member
225 void __user *fpstate; /* zero when no FPU/extended context */ member
259 struct _fpstate __user *fpstate; /* zero when no FPU context */ member
279 struct _fpstate fpstate; member
Dsigcontext32.h72 unsigned int fpstate; /* really (struct _fpstate_ia32 *) */ member
Dxsave.h34 void __user *fpstate,
/arch/m68k/kernel/
Dsignal.c253 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local
270 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state()
272 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state()
274 context_size = fpstate[1]; in rt_restore_fpu_state()
276 if (!CPU_IS_060 && (fpstate[0] != fpu_version)) in rt_restore_fpu_state()
291 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
292 fpstate[3] == 0x60 || in rt_restore_fpu_state()
293 fpstate[3] == 0xe0)) in rt_restore_fpu_state()
309 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state()
314 ".chip 68k" : : "m" (*fpstate)); in rt_restore_fpu_state()
[all …]
Dprocess.c266 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread()
268 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) in copy_thread()
274 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
Dasm-offsets.c40 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); in main()
/arch/x86/ia32/
Dia32_signal.c240 err |= __get_user(tmp, &sc->fpstate); in ia32_restore_sigcontext()
317 void __user *fpstate, in ia32_setup_sigcontext() argument
347 err |= __put_user(ptr_to_compat(fpstate), &sc->fpstate); in ia32_setup_sigcontext()
361 void **fpstate) in get_sigframe() argument
382 *fpstate = (struct _fpstate_ia32 *) sp; in get_sigframe()
383 if (save_i387_xstate_ia32(*fpstate) < 0) in get_sigframe()
400 void __user *fpstate = NULL; in ia32_setup_frame() local
413 frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate); in ia32_setup_frame()
421 if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in ia32_setup_frame()
479 void __user *fpstate = NULL; in ia32_setup_rt_frame() local
[all …]
/arch/m68knommu/kernel/
Dsignal.c223 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local
240 if (__get_user(*(long *)fpstate, (long *)&uc->uc_fpstate)) in rt_restore_fpu_state()
242 if (fpstate[0]) { in rt_restore_fpu_state()
243 context_size = fpstate[1]; in rt_restore_fpu_state()
246 if (fpstate[0] != fpu_version) in rt_restore_fpu_state()
260 __copy_from_user(fpstate + 4, (long *)&uc->uc_fpstate + 1, in rt_restore_fpu_state()
265 ".chip 68k" : : "m" (*fpstate)); in rt_restore_fpu_state()
458 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_save_fpu_state() local
475 : : "m" (*fpstate) : "memory"); in rt_save_fpu_state()
477 err |= __put_user(*(long *)fpstate, (long *)&uc->uc_fpstate); in rt_save_fpu_state()
[all …]
Dprocess.c233 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread()
235 if (p->thread.fpstate[0]) in copy_thread()
241 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
Dasm-offsets.c48 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); in main()
/arch/x86/kernel/
Dsignal.c121 err |= __get_user(buf, &sc->fpstate); in restore_sigcontext()
129 setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in setup_sigcontext() argument
180 err |= __put_user(fpstate, &sc->fpstate); in setup_sigcontext()
220 void **fpstate) in get_sigframe() argument
248 *fpstate = (struct _fpstate *) sp; in get_sigframe()
249 if (save_i387_xstate(*fpstate) < 0) in get_sigframe()
270 void __user *fpstate = NULL; in __setup_frame() local
272 frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate); in __setup_frame()
280 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in __setup_frame()
332 void __user *fpstate = NULL; in __setup_rt_frame() local
[all …]
Dxsave.c29 void __user *fpstate, in check_for_xstate() argument
57 err = __get_user(magic2, (__u32 *) (((void *)fpstate) + in check_for_xstate()
/arch/um/sys-x86_64/
Dsignal.c165 struct _fpstate fpstate; member
211 err |= copy_sc_to_user(&frame->uc.uc_mcontext, &frame->fpstate, regs, in setup_signal_stack_si()
213 err |= __put_user(&frame->fpstate, &frame->uc.uc_mcontext.fpstate); in setup_signal_stack_si()
281 &frame->fpstate)) in sys_rt_sigreturn()
/arch/um/sys-i386/
Dsignal.c183 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user()
188 err = convert_fxsr_from_user(&fpx, sc.fpstate); in copy_sc_from_user()
203 err = copy_from_user(&fp, sc.fpstate, in copy_sc_from_user()
250 sc.fpstate = to_fp; in copy_sc_to_user()
306 struct _fpstate fpstate; member
319 struct _fpstate fpstate; member
415 err |= copy_ucontext_to_user(&frame->uc, &frame->fpstate, mask, in setup_signal_stack_si()
/arch/ia64/ia32/
Dia32_signal.c49 struct _fpstate_ia32 fpstate; member
62 struct _fpstate_ia32 fpstate; member
599 setup_sigcontext_ia32 (struct sigcontext_ia32 __user *sc, struct _fpstate_ia32 __user *fpstate, in setup_sigcontext_ia32() argument
634 if ( save_ia32_fpstate_live(fpstate) < 0 ) in setup_sigcontext_ia32()
637 err |= __put_user((u32)(u64)fpstate, &sc->fpstate); in setup_sigcontext_ia32()
640 tmp = save_i387(fpstate); in setup_sigcontext_ia32()
644 err |= __put_user(tmp ? fpstate : NULL, &sc->fpstate); in setup_sigcontext_ia32()
728 err |= get_user(fpstate_ptr, &(sc->fpstate)); in restore_sigcontext_ia32()
738 err |= __get_user(buf, &sc->fpstate); in restore_sigcontext_ia32()
807 err |= setup_sigcontext_ia32(&frame->sc, &frame->fpstate, regs, set->sig[0]); in setup_frame_ia32()
[all …]
Delfcore32.h117 struct ia32_user_i387_struct *fpstate = (void*)fpu; in elf_core_copy_task_fpregs() local
125 save_ia32_fpstate(tsk, (struct ia32_user_i387_struct __user *) fpstate); in elf_core_copy_task_fpregs()
Dia32priv.h118 unsigned int fpstate; /* really (struct _fpstate_ia32 *) */ member
/arch/arm/kernel/
Dasm-offsets.c53 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
59 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
Dptrace.c583 return copy_to_user(ufp, &task_thread_info(tsk)->fpstate, in ptrace_getfpregs()
594 return copy_from_user(&thread->fpstate, ufp, in ptrace_setfpregs()
610 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs()
624 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs()
Dprocess.c361 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread()
405 memcpy(fp, &thread->fpstate.soft, sizeof (*fp)); in dump_fpu()
/arch/arm/nwfpe/
Dfpa11.h25 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
Dfpmodule.c64 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
/arch/m68k/include/asm/
Dprocessor_mm.h70 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
Dprocessor_no.h72 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
/arch/arm/include/asm/
Dthread_info.h63 union fp_state fpstate __attribute__((aligned(8))); member