From owner-cvs-src-old@FreeBSD.ORG Thu Mar 5 19:43:07 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D3FC1065677 for ; Thu, 5 Mar 2009 19:43:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 168178FC1B for ; Thu, 5 Mar 2009 19:43:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n25Jh6PW054946 for ; Thu, 5 Mar 2009 19:43:06 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n25Jh6jx054945 for cvs-src-old@freebsd.org; Thu, 5 Mar 2009 19:43:06 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200903051943.n25Jh6jx054945@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 5 Mar 2009 19:42:11 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 19:43:08 -0000 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