From owner-cvs-src-old@FreeBSD.ORG Thu Mar 5 16:56:31 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 AEC9A1065714 for ; Thu, 5 Mar 2009 16:56:31 +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 9B1078FC16 for ; Thu, 5 Mar 2009 16:56:31 +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 n25GuVDH038103 for ; Thu, 5 Mar 2009 16:56:31 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n25GuVO0038102 for cvs-src-old@freebsd.org; Thu, 5 Mar 2009 16:56:31 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200903051656.n25GuVO0038102@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 16:56:16 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 fpu.c trap.c src/sys/amd64/include fpu.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 16:56:32 -0000 jhb 2009-03-05 16:56:16 UTC FreeBSD src repository Modified files: sys/amd64/amd64 fpu.c trap.c sys/amd64/include fpu.h Log: SVN rev 189412 on 2009-03-05 16:56:16Z by jhb A few cleanups to the FPU code on amd64: - fpudna() always returned 1 since amd64 CPUs always have FPUs. Change the function to return void and adjust the calling code in trap() to assume the return 1 case is the only case. - Remove fpu_cleanstate_ready as it is always true when it is tested. Also, only initialize fpu_cleanstate when fpuinit() is called on the BSP. Reviewed by: bde Revision Changes Path 1.162 +16 -20 src/sys/amd64/amd64/fpu.c 1.329 +5 -12 src/sys/amd64/amd64/trap.c 1.35 +1 -1 src/sys/amd64/include/fpu.h