Lines Matching refs:fp_regs
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()
68 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
70 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
75 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
77 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
128 void * fp_regs; in arch_init_registers() local
131 fp_regs = malloc(FP_SIZE * sizeof(unsigned long)); in arch_init_registers()
132 if(fp_regs == NULL) in arch_init_registers()
135 iov.iov_base = fp_regs; in arch_init_registers()
140 free(fp_regs); in arch_init_registers()