/linux-3.4.99/arch/parisc/math-emu/ |
D | fpudispatch.c | 171 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/ |
D | switch_to.h | 15 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()
|
D | sigcontext.h | 60 _s390_fp_regs fpregs; member
|
/linux-3.4.99/arch/x86/um/ |
D | ptrace_32.c | 196 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 …]
|
D | ptrace_64.c | 224 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/ |
D | sigutil_64.c | 16 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()
|
D | process_32.c | 575 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 …]
|
D | process_64.c | 668 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 …]
|
D | ptrace_64.c | 333 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()
|
D | signal_64.c | 114 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()
|
D | ptrace_32.c | 213 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/ |
D | ptrace.c | 110 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/ |
D | signal_mm.c | 278 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 …]
|
D | signal_no.c | 190 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 …]
|
D | process.c | 298 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/ |
D | user.h | 42 } fpregs[8]; member 89 unsigned long long fpregs[32]; member
|
D | fpstate.h | 28 __u64 fpregs[32]; member 30 __u64 fpregs[16];
|
/linux-3.4.99/arch/arm/vfp/ |
D | vfpmodule.c | 561 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/ |
D | ptrace.c | 162 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/ |
D | ptrace.c | 668 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/ |
D | processor_64.h | 215 void fpinit(struct sh_fpu_hard_struct *fpregs); 217 #define fpinit(fpregs) do { } while (0) argument
|
/linux-3.4.99/arch/s390/kernel/ |
D | process.c | 280 int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) in dump_fpu() argument 288 memcpy(fpregs, ¤t->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/ |
D | fpumacro.h | 17 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
|
/linux-3.4.99/arch/m68k/include/asm/ |
D | ucontext.h | 16 fpregset_t fpregs; member
|
D | user.h | 32 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
|