Home
last modified time | relevance | path

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

12

/linux/arch/parisc/math-emu/
H A 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 …]
/linux/arch/csky/abiv2/
H A Dfpu.c153 unsigned long *fpregs; in save_to_user_fp() local
163 fpregs = &user_fp->vr[0]; in save_to_user_fp()
172 : "+a"(fpregs) in save_to_user_fp()
177 : "+a"(fpregs) in save_to_user_fp()
203 "=a"(tmp4), "+a"(fpregs) in save_to_user_fp()
215 unsigned long *fpregs; in restore_from_user_fp() local
225 fpregs = &user_fp->vr[0]; in restore_from_user_fp()
234 : "+a"(fpregs) in restore_from_user_fp()
239 : "+a"(fpregs) in restore_from_user_fp()
265 "=a"(tmp4), "+a"(fpregs) in restore_from_user_fp()
/linux/arch/sparc/kernel/
H A 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()
H A Dptrace_64.c354 membuf_write(&to, t->fpregs, 16 * sizeof(u64)); in fpregs64_get()
359 membuf_write(&to, t->fpregs + 16, 16 * sizeof(u64)); in fpregs64_get()
376 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local
384 fpregs, in fpregs64_set()
688 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in fpregs32_get()
703 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local
713 fpregs, in fpregs32_set()
838 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in getfpregs_get()
851 unsigned long *fpregs = task_thread_info(target)->fpregs; in setfpregs_set() local
861 fpregs, in setfpregs_set()
H A Dsignal_64.c111 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local
117 err |= copy_from_user(fpregs, in sparc64_set_context()
121 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()
H A Dptrace_32.c187 unsigned long *fpregs = target->thread.float_regs; in fpregs32_set() local
195 fpregs, in fpregs32_set()
305 unsigned long *fpregs = target->thread.float_regs; in setfpregs_set() local
313 fpregs, in setfpregs_set()
H A Dentry.h40 void fpsave(unsigned long *fpregs, unsigned long *fsr,
42 void fpload(unsigned long *fpregs, unsigned long *fsr);
/linux/arch/m68k/kernel/
H A Dsignal.c337 fpregset_t fpregs; in rt_restore_fpu_state() local
343 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
347 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
385 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
386 sizeof(fpregs))) in rt_restore_fpu_state()
395 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state()
396 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state()
397 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state()
398 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state()
405 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
[all …]
H A Dprocess.c224 memcpy(fpu->fpregs, current->thread.fp, 96); in elf_core_copy_task_fpregs()
229 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in elf_core_copy_task_fpregs()
230 ((fpu->fpregs[i] & 0x0000ffff) << 16); in elf_core_copy_task_fpregs()
251 "m" (fpu->fpregs[0]) in elf_core_copy_task_fpregs()
260 : "m" (fpu->fpregs[0]) in elf_core_copy_task_fpregs()
/linux/arch/loongarch/include/asm/
H A Dfpu.h32 asmlinkage int _save_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
33 asmlinkage int _restore_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
39 asmlinkage int _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
40 asmlinkage int _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
46 asmlinkage int _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
47 asmlinkage int _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
/linux/arch/mips/kernel/
H A 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 …]
H A Dsignal-common.h36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
/linux/arch/arm/include/asm/
H A Duser.h43 } fpregs[8]; member
86 unsigned long long fpregs[32]; member
H A Dfpstate.h25 __u64 fpregs[32]; member
27 __u64 fpregs[16];
/linux/arch/x86/um/
H A Dptrace.c220 void *fpregs = task_pt_regs(target)->regs.fp; in generic_fpregs_get() local
222 membuf_write(&to, fpregs, regset->size * regset->n); in generic_fpregs_get()
231 void *fpregs = task_pt_regs(target)->regs.fp; in generic_fpregs_set() local
234 fpregs, 0, regset->size * regset->n); in generic_fpregs_set()
/linux/arch/arm/kernel/
H A Dptrace.c621 membuf_write(&to, vfp->fpregs, sizeof(vfp->fpregs)); in vfp_get()
622 membuf_zero(&to, user_fpscr_offset - sizeof(vfp->fpregs)); in vfp_get()
639 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
646 &new_vfp.fpregs, in vfp_set()
648 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set()
653 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
/linux/arch/arm/vfp/
H A Dvfpmodule.c592 memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate()
631 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
/linux/arch/sparc/include/asm/
H A Dfpumacro.h18 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
H A Dswitch_to_32.h103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
/linux/arch/m68k/include/asm/
H A Ducontext.h17 fpregset_t fpregs; member
H A Duser.h33 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
/linux/tools/testing/selftests/x86/
H A Dcorrupt_xstate_header.c36 uint8_t *fpstate = (uint8_t *)uc->uc_mcontext.fpregs; in sigusr1()
/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c318 char *fpregs; in signal_handler() local
336 fpregs = (char *) uctxt->uc_mcontext.fpregs; in signal_handler()
350 fpregs += 0x70; in signal_handler()
353 pkey_reg_ptr = (void *)(&fpregs[pkey_reg_offset]); in signal_handler()
367 dprintf1(" fpregs: %p\n", fpregs); in signal_handler()
H A Dpkey-powerpc.h18 #define fpregs fp_regs macro
/linux/arch/parisc/boot/compressed/
H A DMakefile17 KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs -Os

12