Home
last modified time | relevance | path

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

12

/linux-3.4.99/arch/parisc/math-emu/
Dfpudispatch.c171 static void parisc_linux_get_fpu_type(u_int fpregs[]) in parisc_linux_get_fpu_type() argument
177 fpregs[FPU_TYPE_FLAG_POS] = TIMEX_EXTEN_FLAG; in parisc_linux_get_fpu_type()
180 fpregs[FPU_TYPE_FLAG_POS] = ROLEX_EXTEN_FLAG; in parisc_linux_get_fpu_type()
182 fpregs[FPU_TYPE_FLAG_POS] = PA2_0_FPU_FLAG; in parisc_linux_get_fpu_type()
195 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument
203 parisc_linux_get_fpu_type(fpregs); in fpudispatch()
205 fpu_type_flags=fpregs[FPU_TYPE_FLAG_POS]; /* get fpu type flags */ in fpudispatch()
222 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch()
224 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch()
226 return(decode_06(ir,fpregs)); in fpudispatch()
[all …]
/linux-3.4.99/arch/s390/include/asm/
Dswitch_to.h15 static inline void save_fp_regs(s390_fp_regs *fpregs) in save_fp_regs() argument
22 : "=Q" (*fpregs) : "Q" (*fpregs)); in save_fp_regs()
39 : "=Q" (*fpregs) : "Q" (*fpregs)); in save_fp_regs()
42 static inline void restore_fp_regs(s390_fp_regs *fpregs) in restore_fp_regs() argument
49 : : "Q" (*fpregs)); in restore_fp_regs()
66 : : "Q" (*fpregs)); in restore_fp_regs()
Dsigcontext.h60 _s390_fp_regs fpregs; member
/linux-3.4.99/arch/x86/um/
Dptrace_32.c196 struct user_i387_struct fpregs; in get_fpregs() local
198 err = save_fp_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpregs()
202 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
212 struct user_i387_struct fpregs; in set_fpregs() local
214 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
219 (unsigned long *) &fpregs); in set_fpregs()
225 struct user_fxsr_struct fpregs; in get_fpxregs() local
227 err = save_fpx_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpxregs()
231 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs()
241 struct user_fxsr_struct fpregs; in set_fpxregs() local
[all …]
Dptrace_64.c224 long fpregs[HOST_FP_SIZE]; in get_fpregs() local
226 BUG_ON(sizeof(*buf) != sizeof(fpregs)); in get_fpregs()
227 err = save_fp_registers(userspace_pid[cpu], fpregs); in get_fpregs()
231 n = copy_to_user(buf, fpregs, sizeof(fpregs)); in get_fpregs()
241 long fpregs[HOST_FP_SIZE]; in set_fpregs() local
243 BUG_ON(sizeof(*buf) != sizeof(fpregs)); in set_fpregs()
244 n = copy_from_user(fpregs, buf, sizeof(fpregs)); in set_fpregs()
248 return restore_fp_registers(userspace_pid[cpu], fpregs); in set_fpregs()
/linux-3.4.99/arch/sparc/kernel/
Dsigutil_64.c16 unsigned long *fpregs = current_thread_info()->fpregs; in save_fpu_state() local
22 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state()
25 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state()
36 unsigned long *fpregs = current_thread_info()->fpregs; in restore_fpu_state() local
44 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state()
47 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
Dprocess_32.c575 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) argument
578 memset(fpregs, 0, sizeof(*fpregs));
579 fpregs->pr_q_entrysize = 8;
603 memcpy(&fpregs->pr_fr.pr_regs[0],
606 fpregs->pr_fsr = current->thread.fsr;
607 fpregs->pr_qcnt = current->thread.fpqdepth;
608 fpregs->pr_q_entrysize = 8;
609 fpregs->pr_en = 1;
610 if(fpregs->pr_qcnt != 0) {
611 memcpy(&fpregs->pr_q[0],
[all …]
Dprocess_64.c668 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) in dump_fpu() argument
670 unsigned long *kfpregs = current_thread_info()->fpregs; in dump_fpu()
674 elf_fpregset_t32 *fpregs32 = (elf_fpregset_t32 *)fpregs; in dump_fpu()
695 memcpy(&fpregs->pr_regs[0], kfpregs, in dump_fpu()
698 memset(&fpregs->pr_regs[0], 0, in dump_fpu()
701 memcpy(&fpregs->pr_regs[16], kfpregs+16, in dump_fpu()
704 memset(&fpregs->pr_regs[16], 0, in dump_fpu()
707 fpregs->pr_fsr = current_thread_info()->xfsr[0]; in dump_fpu()
708 fpregs->pr_gsr = current_thread_info()->gsr[0]; in dump_fpu()
710 fpregs->pr_fsr = fpregs->pr_gsr = 0; in dump_fpu()
[all …]
Dptrace_64.c333 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_get() local
344 fpregs, in fpregs64_get()
355 fpregs + 16, in fpregs64_get()
400 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local
408 fpregs, in fpregs64_set()
705 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_get() local
724 fpregs, in fpregs32_get()
759 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local
769 fpregs, in fpregs32_set()
Dsignal_64.c114 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local
120 err |= copy_from_user(fpregs, in sparc64_set_context()
124 err |= copy_from_user(fpregs+16, in sparc64_set_context()
209 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() local
214 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context()
218 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
Dptrace_32.c213 const unsigned long *fpregs = target->thread.float_regs; in fpregs32_get() local
222 fpregs, in fpregs32_get()
257 unsigned long *fpregs = target->thread.float_regs; in fpregs32_set() local
265 fpregs, in fpregs32_set()
/linux-3.4.99/arch/frv/kernel/
Dptrace.c110 const struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_get() local
114 fpregs, 0, sizeof(*fpregs)); in fpmregs_get()
119 sizeof(*fpregs), -1); in fpmregs_get()
130 struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_set() local
134 fpregs, 0, sizeof(*fpregs)); in fpmregs_set()
139 sizeof(*fpregs), -1); in fpmregs_set()
/linux-3.4.99/arch/m68k/kernel/
Dsignal_mm.c278 fpregset_t fpregs; in rt_restore_fpu_state() local
284 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
288 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
326 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
327 sizeof(fpregs))) in rt_restore_fpu_state()
336 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state()
337 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state()
338 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state()
339 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state()
346 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
[all …]
Dsignal_no.c190 fpregset_t fpregs; in rt_restore_fpu_state() local
196 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
200 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
213 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
214 sizeof(fpregs))) in rt_restore_fpu_state()
221 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
222 "m" (*fpregs.f_fpcntl)); in rt_restore_fpu_state()
429 err |= copy_to_user(uc->uc_mcontext.fpregs.f_pcntl, in rt_save_fpu_state()
432 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state()
444 fpregset_t fpregs; in rt_save_fpu_state() local
[all …]
Dprocess.c298 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu()
303 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu()
304 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu()
322 "m" (fpu->fpregs[0]) in dump_fpu()
331 : "m" (fpu->fpregs[0]) in dump_fpu()
/linux-3.4.99/arch/arm/include/asm/
Duser.h42 } fpregs[8]; member
89 unsigned long long fpregs[32]; member
Dfpstate.h28 __u64 fpregs[32]; member
30 __u64 fpregs[16];
/linux-3.4.99/arch/arm/vfp/
Dvfpmodule.c561 err |= __copy_to_user(&ufp->fpregs, &hwstate->fpregs, in vfp_preserve_user_clear_hwstate()
562 sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate()
605 err |= __copy_from_user(&hwstate->fpregs, &ufp->fpregs, in vfp_restore_user_hwstate()
606 sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
/linux-3.4.99/arch/mn10300/kernel/
Dptrace.c162 const struct fpu_state_struct *fpregs = &target->thread.fpu_state; in fpuregs_get() local
168 fpregs, 0, sizeof(*fpregs)); in fpuregs_get()
173 sizeof(*fpregs), -1); in fpuregs_get()
/linux-3.4.99/arch/arm/kernel/
Dptrace.c668 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_get()
674 &vfp->fpregs, in vfp_get()
676 user_fpregs_offset + sizeof(vfp->fpregs)); in vfp_get()
681 user_fpregs_offset + sizeof(vfp->fpregs), in vfp_get()
705 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
712 &new_vfp.fpregs, in vfp_set()
714 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set()
719 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
/linux-3.4.99/arch/sh/include/asm/
Dprocessor_64.h215 void fpinit(struct sh_fpu_hard_struct *fpregs);
217 #define fpinit(fpregs) do { } while (0) argument
/linux-3.4.99/arch/s390/kernel/
Dprocess.c280 int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) in dump_fpu() argument
288 memcpy(fpregs, &current->thread.fp_regs, sizeof(s390_fp_regs)); in dump_fpu()
290 save_fp_regs(fpregs); in dump_fpu()
/linux-3.4.99/arch/sparc/include/asm/
Dfpumacro.h17 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
/linux-3.4.99/arch/m68k/include/asm/
Ducontext.h16 fpregset_t fpregs; member
Duser.h32 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member

12