Date: Thu, 5 Mar 2009 19:42:11 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/amd64 fpu.c machdep.c src/sys/amd64/ia32 ia32_signal.c src/sys/amd64/include pcb.h src/sys/amd64/linux32 linux32_sysvec.c src/sys/compat/linux linux_misc.h src/sys/i386/i386 machdep.c src/sys/i386/include pcb.h ... Message-ID: <200903051943.n25Jh6jx054945@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-03-05 19:42:11 UTC FreeBSD src repository Modified files: sys/amd64/amd64 fpu.c machdep.c sys/amd64/ia32 ia32_signal.c sys/amd64/include pcb.h sys/amd64/linux32 linux32_sysvec.c sys/compat/linux linux_misc.h sys/i386/i386 machdep.c sys/i386/include pcb.h sys/i386/isa npx.c sys/i386/linux linux_sysvec.c Log: SVN rev 189423 on 2009-03-05 19:42:11Z by jhb A better fix for handling different FPU initial control words for different ABIs: - Store the FPU initial control word in the pcb for each thread. - When first using the FPU, load the initial control word after restoring the clean state if it is not the standard control word. - Provide a correct control word for Linux/i386 binaries under FreeBSD/amd64. - Adjust the control word returned for fpugetregs()/npxgetregs() when a thread hasn't used the FPU yet to reflect the real initial control word for the current ABI. - The Linux/i386 ABI for FreeBSD/i386 now properly sets the right control word instead of trashing whatever the current state of the FPU is. Reviewed by: bde Revision Changes Path 1.163 +3 -5 src/sys/amd64/amd64/fpu.c 1.692 +2 -1 src/sys/amd64/amd64/machdep.c 1.21 +1 -0 src/sys/amd64/ia32/ia32_signal.c 1.68 +1 -0 src/sys/amd64/include/pcb.h 1.43 +1 -0 src/sys/amd64/linux32/linux32_sysvec.c 1.5 +5 -0 src/sys/compat/linux/linux_misc.h 1.677 +2 -1 src/sys/i386/i386/machdep.c 1.57 +1 -0 src/sys/i386/include/pcb.h 1.178 +11 -0 src/sys/i386/isa/npx.c 1.160 +3 -7 src/sys/i386/linux/linux_sysvec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903051943.n25Jh6jx054945>