/arch/x86/um/os-Linux/ |
D | registers.c | 21 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument 23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers() 28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument 34 iov.iov_base = fp_regs; in save_fp_registers() 41 return save_i387_registers(pid, fp_regs); in save_fp_registers() 44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument 46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers() 51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument 56 iov.iov_base = fp_regs; in restore_fp_registers() 63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers() [all …]
|
/arch/um/include/shared/ |
D | registers.h | 12 extern int save_i387_registers(int pid, unsigned long *fp_regs); 13 extern int restore_i387_registers(int pid, unsigned long *fp_regs); 14 extern int save_fp_registers(int pid, unsigned long *fp_regs); 15 extern int restore_fp_registers(int pid, unsigned long *fp_regs); 16 extern int save_fpx_registers(int pid, unsigned long *fp_regs); 17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs); 21 extern void get_safe_registers(unsigned long *regs, unsigned long *fp_regs);
|
/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 165 fpu->fp_regs[n] = du; in denormal_to_double() 166 fpu->fp_regs[n + 1] = dl; in denormal_to_double() 251 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 252 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() 263 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler() 265 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler() 267 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler() 268 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler() 274 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler() 289 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() [all …]
|
/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 396 fpu->fp_regs[n] = du; in denormal_to_double() 397 fpu->fp_regs[n+1] = dl; in denormal_to_double() 476 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 477 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() 488 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler() 490 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler() 495 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler() 496 tsk->thread.xstate->hardfpu.fp_regs[n+1] = llx & 0xffffffff; in ieee_fpe_handler() 505 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler() 519 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() [all …]
|
/arch/um/os-Linux/ |
D | registers.c | 52 void get_safe_registers(unsigned long *regs, unsigned long *fp_regs) in get_safe_registers() argument 56 if (fp_regs) in get_safe_registers() 57 memcpy(fp_regs, exec_fp_regs, sizeof(exec_fp_regs)); in get_safe_registers()
|
/arch/sh/kernel/ |
D | traps_64.c | 356 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load() 360 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load() 361 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load() 364 current->thread.xstate->hardfpu.fp_regs[destreg] = bufhi; in misaligned_fpu_load() 365 current->thread.xstate->hardfpu.fp_regs[destreg+1] = buflo; in misaligned_fpu_load() 367 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load() 368 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load() 423 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store() 427 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store() 428 bufhi = current->thread.xstate->hardfpu.fp_regs[srcreg+1]; in misaligned_fpu_store() [all …]
|
/arch/sh/include/asm/ |
D | user.h | 33 unsigned long fp_regs[32]; member 38 unsigned long fp_regs[16]; member
|
D | processor_32.h | 73 unsigned long fp_regs[16]; member 83 unsigned long fp_regs[16]; member
|
D | processor_64.h | 84 unsigned long fp_regs[64]; member 91 unsigned long fp_regs[64]; member
|
/arch/s390/kernel/ |
D | ptrace.c | 236 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user() 243 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user() 250 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __peek_user() 255 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __peek_user() 378 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user() 385 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user() 394 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user() 399 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user() 613 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat() 620 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat() [all …]
|
D | compat_ptrace.h | 27 s390_fp_regs fp_regs; member
|
/arch/powerpc/include/uapi/asm/ |
D | sigcontext.h | 28 elf_fpregset_t fp_regs; member
|
/arch/arm64/include/asm/ |
D | kvm_hyp.h | 155 void __fpsimd_save_state(struct user_fpsimd_state *fp_regs); 156 void __fpsimd_restore_state(struct user_fpsimd_state *fp_regs);
|
/arch/arm64/kvm/ |
D | guest.c | 78 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in validate_core_offset() 79 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in validate_core_offset() 83 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in validate_core_offset() 84 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in validate_core_offset()
|
/arch/sh/math-emu/ |
D | math.c | 36 #define FR ((unsigned long*)(fregs->fp_regs)) 40 #define DR ((unsigned long long*)(fregs->fp_regs)) 493 fpu->fp_regs[n] = du; in denormal_to_double() 494 fpu->fp_regs[n+1] = dl; in denormal_to_double() 589 fpu->fp_regs[i] = 0; in fpu_init()
|
/arch/powerpc/kernel/ |
D | signal_64.c | 145 err |= copy_fpr_to_user(&sc->fp_regs, tsk); in setup_sigcontext() 269 err |= copy_ckfpr_to_user(&sc->fp_regs, tsk); in setup_tm_sigcontexts() 271 err |= copy_fpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts() 273 err |= copy_ckfpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts() 393 err |= copy_fpr_from_user(tsk, &sc->fp_regs); in restore_sigcontext() 522 err |= copy_fpr_from_user(tsk, &tm_sc->fp_regs); in restore_tm_sigcontexts() 523 err |= copy_ckfpr_from_user(tsk, &sc->fp_regs); in restore_tm_sigcontexts()
|
/arch/arm64/include/uapi/asm/ |
D | kvm.h | 56 struct user_fpsimd_state fp_regs; member
|
/arch/arm64/kvm/hyp/ |
D | switch.c | 421 __fpsimd_save_state(&guest_ctxt->gp_regs.fp_regs); in __kvm_vcpu_run() 422 __fpsimd_restore_state(&host_ctxt->gp_regs.fp_regs); in __kvm_vcpu_run()
|
/arch/s390/include/uapi/asm/ |
D | ptrace.h | 448 s390_fp_regs fp_regs; member
|
/arch/arm64/kernel/ |
D | asm-offsets.c | 137 DEFINE(CPU_FP_REGS, offsetof(struct kvm_regs, fp_regs)); in main()
|