--- src/sys/emulation/linux/i386/linux_ptrace.c 2003/08/07 21:17:18 1.8 +++ src/sys/emulation/linux/i386/linux_ptrace.c 2005/11/14 18:49:57 1.9 @@ -222,7 +222,7 @@ linux_proc_read_fpxregs(struct proc *p, int error; error = 0; - if (cpu_fxsr == 0 || (p->p_flag & P_INMEM) == 0) + if (cpu_fxsr == 0 || (p->p_flag & P_SWAPPEDOUT)) error = EIO; else bcopy(&p->p_thread->td_pcb->pcb_save.sv_xmm, @@ -236,7 +236,7 @@ linux_proc_write_fpxregs(struct proc *p, int error; error = 0; - if (cpu_fxsr == 0 || (p->p_flag & P_INMEM) == 0) + if (cpu_fxsr == 0 || (p->p_flag & P_SWAPPEDOUT)) error = EIO; else bcopy(fpxregs, &p->p_thread->td_pcb->pcb_save.sv_xmm,