svn commit: r238675 - head/sys/i386/i386
Konstantin Belousov
kib at FreeBSD.org
Sat Jul 21 21:39:02 UTC 2012
Author: kib
Date: Sat Jul 21 21:39:02 2012
New Revision: 238675
URL: http://svn.freebsd.org/changeset/base/238675
Log:
MFamd64 r238669:
Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS.
Reported by: bde
MFC after: 1 week
Modified:
head/sys/i386/i386/ptrace_machdep.c
Modified: head/sys/i386/i386/ptrace_machdep.c
==============================================================================
--- head/sys/i386/i386/ptrace_machdep.c Sat Jul 21 19:46:14 2012 (r238674)
+++ head/sys/i386/i386/ptrace_machdep.c Sat Jul 21 21:39:02 2012 (r238675)
@@ -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;
More information about the svn-src-head
mailing list