| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | vfp.c | 969 struct fpreg *fpregs; in get_arm64_sve() local 971 fpregs = (void *)(&header[1]); in get_arm64_sve() 973 sizeof(fpregs->fp_q)); in get_arm64_sve() 974 fpregs->fp_cr = pcb->pcb_fpustate.vfp_fpcr; in get_arm64_sve() 975 fpregs->fp_sr = pcb->pcb_fpustate.vfp_fpsr; in get_arm64_sve() 1040 struct fpreg *fpregs; in set_arm64_sve() local 1042 fpregs = (void *)(&header[1]); in set_arm64_sve() 1043 memcpy(pcb->pcb_fpustate.vfp_regs, fpregs->fp_q, in set_arm64_sve() 1044 sizeof(fpregs->fp_q)); in set_arm64_sve() 1045 pcb->pcb_fpustate.vfp_fpcr = fpregs->fp_cr; in set_arm64_sve() [all …]
|
| /freebsd-14.2/sys/amd64/amd64/ |
| H A D | exec_machdep.c | 505 fill_fpregs_xmm(struct savefpu *sv_xmm, struct fpreg *fpregs) in fill_fpregs_xmm() argument 507 struct envxmm *penv_fpreg = (struct envxmm *)&fpregs->fpr_env; in fill_fpregs_xmm() 512 bzero(fpregs, sizeof(*fpregs)); in fill_fpregs_xmm() 530 bcopy(sv_xmm->sv_xmm[i].xmm_bytes, fpregs->fpr_xacc[i], 16); in fill_fpregs_xmm() 535 set_fpregs_xmm(struct fpreg *fpregs, struct savefpu *sv_xmm) in set_fpregs_xmm() argument 538 struct envxmm *penv_fpreg = (struct envxmm *)&fpregs->fpr_env; in set_fpregs_xmm() 558 bcopy(fpregs->fpr_xacc[i], sv_xmm->sv_xmm[i].xmm_bytes, 16); in set_fpregs_xmm() 563 fill_fpregs(struct thread *td, struct fpreg *fpregs) in fill_fpregs() argument 570 fill_fpregs_xmm(get_pcb_user_save_td(td), fpregs); in fill_fpregs() 576 set_fpregs(struct thread *td, struct fpreg *fpregs) in set_fpregs() argument [all …]
|
| /freebsd-14.2/sys/riscv/include/ |
| H A D | ucontext.h | 50 struct fpregs { struct 59 struct fpregs mc_fpregs; argument
|
| /freebsd-14.2/sys/arm64/include/ |
| H A D | ucontext.h | 46 struct fpregs { struct 76 struct fpregs mc_fpregs;
|
| /freebsd-14.2/sys/fs/procfs/ |
| H A D | procfs_fpregs.c | 114 error = PROC(read, fpregs, td2, &r); in procfs_doprocfpregs() 125 error = PROC(write, fpregs, td2, &r); in procfs_doprocfpregs()
|
| /freebsd-14.2/lib/libthread_db/ |
| H A D | libpthread_db.c | 719 pt_thr_getfpregs(const td_thrhandle_t *th, prfpregset_t *fpregs) in pt_thr_getfpregs() argument 734 ret = ps_lgetfpregs(ta->ph, ta->map[th->th_tid].lwp, fpregs); in pt_thr_getfpregs() 748 ret = ps_lgetfpregs(ta->ph, lwp, fpregs); in pt_thr_getfpregs() 755 pt_ucontext_to_fpreg(&tmbx.tm_context, fpregs); in pt_thr_getfpregs() 852 pt_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs) in pt_thr_setfpregs() argument 867 ret = ps_lsetfpregs(ta->ph, ta->map[th->th_tid].lwp, fpregs); in pt_thr_setfpregs() 882 ret = ps_lsetfpregs(ta->ph, lwp, fpregs); in pt_thr_setfpregs() 893 pt_fpreg_to_ucontext(fpregs, &tmbx.tm_context); in pt_thr_setfpregs()
|
| H A D | libthr_db.c | 544 pt_thr_getfpregs(const td_thrhandle_t *th, prfpregset_t *fpregs) in pt_thr_getfpregs() argument 555 ret = ps_lgetfpregs(ta->ph, th->th_tid, fpregs); in pt_thr_getfpregs() 594 pt_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs) in pt_thr_setfpregs() argument 605 ret = ps_lsetfpregs(ta->ph, th->th_tid, fpregs); in pt_thr_setfpregs()
|
| H A D | thread_db.c | 234 td_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs) in td_thr_setfpregs() argument 237 return (ta->ta_ops->to_thr_setfpregs(th, fpregs)); in td_thr_setfpregs()
|
| /freebsd-14.2/sys/powerpc/powerpc/ |
| H A D | exec_machdep.c | 747 fill_fpregs(struct thread *td, struct fpreg *fpregs) in fill_fpregs() argument 755 memset(fpregs, 0, sizeof(struct fpreg)); in fill_fpregs() 757 memcpy(&fpregs->fpscr, &pcb->pcb_fpu.fpscr, sizeof(double)); in fill_fpregs() 759 memcpy(&fpregs->fpreg[i], &pcb->pcb_fpu.fpr[i].fpr, in fill_fpregs() 785 set_fpregs(struct thread *td, struct fpreg *fpregs) in set_fpregs() argument 792 memcpy(&pcb->pcb_fpu.fpscr, &fpregs->fpscr, sizeof(double)); in set_fpregs() 794 memcpy(&pcb->pcb_fpu.fpr[i].fpr, &fpregs->fpreg[i], in set_fpregs()
|
| /freebsd-14.2/sys/i386/i386/ |
| H A D | exec_machdep.c | 1074 fill_fpregs(struct thread *td, struct fpreg *fpregs) in fill_fpregs() argument 1083 (struct save87 *)fpregs); in fill_fpregs() 1085 bcopy(&get_pcb_user_save_td(td)->sv_87, fpregs, in fill_fpregs() 1086 sizeof(*fpregs)); in fill_fpregs() 1091 set_fpregs(struct thread *td, struct fpreg *fpregs) in set_fpregs() argument 1096 npx_set_fpregs_xmm((struct save87 *)fpregs, in set_fpregs() 1099 bcopy(fpregs, &get_pcb_user_save_td(td)->sv_87, in set_fpregs() 1100 sizeof(*fpregs)); in set_fpregs()
|
| /freebsd-14.2/sys/kern/ |
| H A D | sys_process.c | 145 proc_read_fpregs(struct thread *td, struct fpreg *fpregs) in proc_read_fpregs() argument 148 PROC_ACTION(fill_fpregs(td, fpregs)); in proc_read_fpregs() 152 proc_write_fpregs(struct thread *td, struct fpreg *fpregs) in proc_write_fpregs() argument 155 PROC_ACTION(set_fpregs(td, fpregs)); in proc_write_fpregs() 1444 error = PROC_WRITE(fpregs, td2, addr); in kern_ptrace() 1450 error = PROC_READ(fpregs, td2, addr); in kern_ptrace()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_platform_limits_posix.cpp | 229 const auto *fpregs = static_cast<ucontext_t *>(ctx)->uc_mcontext.fpregs; in ucontext_t_sz() local 233 reinterpret_cast<const uint32_t *>(fpregs + 1) - 24; in ucontext_t_sz() 235 return reinterpret_cast<const char *>(fpregs) + after_xmm[13] - in ucontext_t_sz()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARM.td | 40 def FeatureFPRegs : SubtargetFeature<"fpregs", "HasFPRegs", "true",
|