Home
last modified time | relevance | path

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

12

/arch/parisc/math-emu/
Dfpudispatch.c158 static void parisc_linux_get_fpu_type(u_int fpregs[]) in parisc_linux_get_fpu_type() argument
164 fpregs[FPU_TYPE_FLAG_POS] = TIMEX_EXTEN_FLAG; in parisc_linux_get_fpu_type()
167 fpregs[FPU_TYPE_FLAG_POS] = ROLEX_EXTEN_FLAG; in parisc_linux_get_fpu_type()
169 fpregs[FPU_TYPE_FLAG_POS] = PA2_0_FPU_FLAG; in parisc_linux_get_fpu_type()
182 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument
190 parisc_linux_get_fpu_type(fpregs); in fpudispatch()
192 fpu_type_flags=fpregs[FPU_TYPE_FLAG_POS]; /* get fpu type flags */ in fpudispatch()
209 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch()
211 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch()
213 return(decode_06(ir,fpregs)); in fpudispatch()
[all …]
/arch/s390/include/asm/fpu/
Dinternal.h41 static inline void fpregs_store(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_store() argument
43 fpregs->pad = 0; in fpregs_store()
44 fpregs->fpc = fpu->fpc; in fpregs_store()
46 convert_vx_to_fp((freg_t *)&fpregs->fprs, fpu->vxrs); in fpregs_store()
48 memcpy((freg_t *)&fpregs->fprs, fpu->fprs, in fpregs_store()
49 sizeof(fpregs->fprs)); in fpregs_store()
52 static inline void fpregs_load(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_load() argument
54 fpu->fpc = fpregs->fpc; in fpregs_load()
56 convert_fp_to_vx(fpu->vxrs, (freg_t *)&fpregs->fprs); in fpregs_load()
58 memcpy(fpu->fprs, (freg_t *)&fpregs->fprs, in fpregs_load()
[all …]
/arch/x86/um/
Dptrace_32.c199 struct user_i387_struct fpregs; in get_fpregs() local
202 (unsigned long *) &fpregs); in get_fpregs()
206 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
216 struct user_i387_struct fpregs; in set_fpregs() local
218 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
223 (unsigned long *) &fpregs); in set_fpregs()
229 struct user_fxsr_struct fpregs; in get_fpxregs() local
231 err = save_fpx_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpxregs()
235 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs()
245 struct user_fxsr_struct fpregs; in set_fpxregs() local
[all …]
Dptrace_64.c230 struct user_i387_struct fpregs; in get_fpregs() local
233 (unsigned long *) &fpregs); in get_fpregs()
237 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
247 struct user_i387_struct fpregs; in set_fpregs() local
249 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
254 (unsigned long *) &fpregs); in set_fpregs()
/arch/sparc/kernel/
Dsigutil_64.c17 unsigned long *fpregs = current_thread_info()->fpregs; in save_fpu_state() local
23 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state()
26 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state()
37 unsigned long *fpregs = current_thread_info()->fpregs; in restore_fpu_state() local
48 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state()
51 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
Dprocess_32.c415 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) argument
418 memset(fpregs, 0, sizeof(*fpregs));
419 fpregs->pr_q_entrysize = 8;
443 memcpy(&fpregs->pr_fr.pr_regs[0],
446 fpregs->pr_fsr = current->thread.fsr;
447 fpregs->pr_qcnt = current->thread.fpqdepth;
448 fpregs->pr_q_entrysize = 8;
449 fpregs->pr_en = 1;
450 if(fpregs->pr_qcnt != 0) {
451 memcpy(&fpregs->pr_q[0],
[all …]
Dprocess_64.c720 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) in dump_fpu() argument
722 unsigned long *kfpregs = current_thread_info()->fpregs; in dump_fpu()
726 elf_fpregset_t32 *fpregs32 = (elf_fpregset_t32 *)fpregs; in dump_fpu()
747 memcpy(&fpregs->pr_regs[0], kfpregs, in dump_fpu()
750 memset(&fpregs->pr_regs[0], 0, in dump_fpu()
753 memcpy(&fpregs->pr_regs[16], kfpregs+16, in dump_fpu()
756 memset(&fpregs->pr_regs[16], 0, in dump_fpu()
759 fpregs->pr_fsr = current_thread_info()->xfsr[0]; in dump_fpu()
760 fpregs->pr_gsr = current_thread_info()->gsr[0]; in dump_fpu()
762 fpregs->pr_fsr = fpregs->pr_gsr = 0; in dump_fpu()
[all …]
Dptrace_64.c377 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_get() local
388 fpregs, in fpregs64_get()
399 fpregs + 16, in fpregs64_get()
444 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local
452 fpregs, in fpregs64_set()
755 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_get() local
774 fpregs, in fpregs32_get()
809 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local
819 fpregs, in fpregs32_set()
Dsignal_64.c112 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local
118 err |= copy_from_user(fpregs, in sparc64_set_context()
122 err |= copy_from_user(fpregs+16, in sparc64_set_context()
210 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() local
215 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context()
219 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
/arch/csky/abiv2/
Dfpu.c158 unsigned long *fpregs; in save_to_user_fp() local
168 fpregs = &user_fp->vr[0]; in save_to_user_fp()
177 : "+a"(fpregs) in save_to_user_fp()
182 : "+a"(fpregs) in save_to_user_fp()
208 "=a"(tmp4), "+a"(fpregs) in save_to_user_fp()
220 unsigned long *fpregs; in restore_from_user_fp() local
230 fpregs = &user_fp->vr[0]; in restore_from_user_fp()
239 : "+a"(fpregs) in restore_from_user_fp()
244 : "+a"(fpregs) in restore_from_user_fp()
270 "=a"(tmp4), "+a"(fpregs) in restore_from_user_fp()
/arch/m68k/kernel/
Dprocess.c202 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu()
207 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu()
208 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu()
229 "m" (fpu->fpregs[0]) in dump_fpu()
238 : "m" (fpu->fpregs[0]) in dump_fpu()
Dsignal.c336 fpregset_t fpregs; in rt_restore_fpu_state() local
342 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
346 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
384 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
385 sizeof(fpregs))) in rt_restore_fpu_state()
394 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state()
395 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state()
396 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state()
397 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state()
404 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
[all …]
/arch/nds32/kernel/
Dfpu.c85 void load_fpu(const struct fpu_struct *fpregs) in load_fpu() argument
110 : "r" (fpregs)); in load_fpu()
122 : "r" (fpregs)); in load_fpu()
130 : "r" (fpregs)); in load_fpu()
139 : "r"(fpregs)); in load_fpu()
/arch/s390/kernel/
Dprocess.c164 int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) in dump_fpu() argument
167 fpregs->fpc = current->thread.fpu.fpc; in dump_fpu()
168 fpregs->pad = 0; in dump_fpu()
170 convert_vx_to_fp((freg_t *)&fpregs->fprs, in dump_fpu()
173 memcpy(&fpregs->fprs, current->thread.fpu.fprs, in dump_fpu()
174 sizeof(fpregs->fprs)); in dump_fpu()
/arch/mips/kernel/
Dsignal-common.h36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
Dsignal.c74 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext() local
83 &fpregs[i]); in copy_fp_to_sigcontext()
93 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext() local
101 err |= __get_user(fpr_val, &fpregs[i]); in copy_fp_from_sigcontext()
129 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in save_hw_fp_context() local
132 return _save_fp_context(fpregs, csr); in save_hw_fp_context()
138 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in restore_hw_fp_context() local
141 return _restore_fp_context(fpregs, csr); in restore_hw_fp_context()
328 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in protected_save_fp_context() local
362 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context()
[all …]
/arch/arm/include/asm/
Duser.h43 } fpregs[8]; member
90 unsigned long long fpregs[32]; member
Dfpstate.h25 __u64 fpregs[32]; member
27 __u64 fpregs[16];
/arch/sh/include/asm/
Dprocessor_64.h194 void fpinit(struct sh_fpu_hard_struct *fpregs);
196 #define fpinit(fpregs) do { } while (0) argument
/arch/sparc/include/asm/
Dfpumacro.h18 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
/arch/arm/vfp/
Dvfpmodule.c561 memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate()
600 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
/arch/arm/kernel/
Dptrace.c659 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_get()
665 &vfp->fpregs, in vfp_get()
667 user_fpregs_offset + sizeof(vfp->fpregs)); in vfp_get()
672 user_fpregs_offset + sizeof(vfp->fpregs), in vfp_get()
696 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
703 &new_vfp.fpregs, in vfp_set()
705 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set()
710 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
/arch/arm64/kernel/
Dsignal32.c27 compat_u64 fpregs[32]; member
118 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_preserve_vfp_context()
123 __put_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_preserve_vfp_context()
124 __put_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_preserve_vfp_context()
161 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_restore_vfp_context()
164 __get_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_restore_vfp_context()
165 __get_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_restore_vfp_context()
/arch/m68k/include/asm/
Ducontext.h17 fpregset_t fpregs; member
Duser.h33 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member

12