Lines Matching refs:fp_regs
22 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
29 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
35 iov.iov_base = fp_regs; in save_fp_registers()
42 return save_i387_registers(pid, fp_regs); in save_fp_registers()
45 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
47 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
52 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
57 iov.iov_base = fp_regs; in restore_fp_registers()
64 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
69 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
71 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
76 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
78 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
129 void * fp_regs; in arch_init_registers() local
132 fp_regs = malloc(FP_SIZE * sizeof(unsigned long)); in arch_init_registers()
133 if(fp_regs == NULL) in arch_init_registers()
136 iov.iov_base = fp_regs; in arch_init_registers()
141 free(fp_regs); in arch_init_registers()