看板 FB_svn 關於我們 聯絡資訊
Author: kib Date: Sat Sep 1 15:50:52 2012 New Revision: 239992 URL: http://svn.freebsd.org/changeset/base/239992 Log: MFC r238675: Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS. Modified: stable/9/sys/i386/i386/ptrace_machdep.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/i386/i386/ptrace_machdep.c ============================================================================== --- stable/9/sys/i386/i386/ptrace_machdep.c Sat Sep 1 14:45:15 2012 (r239991) +++ stable/9/sys/i386/i386/ptrace_machdep.c Sat Sep 1 15:50:52 2012 (r239992) @@ -54,10 +54,12 @@ cpu_ptrace(struct thread *td, int req, v fpstate = &td->td_pcb->pcb_user_save.sv_xmm; switch (req) { case PT_GETXMMREGS: + npxgetregs(td); error = copyout(fpstate, addr, sizeof(*fpstate)); break; case PT_SETXMMREGS: + npxgetregs(td); error = copyin(addr, fpstate, sizeof(*fpstate)); fpstate->sv_env.en_mxcsr &= cpu_mxcsr_mask; break; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"