From owner-svn-src-all@FreeBSD.ORG Sat Feb 19 11:47:48 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C57E5106566B; Sat, 19 Feb 2011 11:47:48 +0000 (UTC) (envelope-from nyan@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B42668FC14; Sat, 19 Feb 2011 11:47:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1JBlmuV094804; Sat, 19 Feb 2011 11:47:48 GMT (envelope-from nyan@svn.freebsd.org) Received: (from nyan@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1JBlmiS094802; Sat, 19 Feb 2011 11:47:48 GMT (envelope-from nyan@svn.freebsd.org) Message-Id: <201102191147.p1JBlmiS094802@svn.freebsd.org> From: Takahashi Yoshihiro Date: Sat, 19 Feb 2011 11:47:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218849 - stable/8/sys/pc98/pc98 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 11:47:48 -0000 Author: nyan Date: Sat Feb 19 11:47:48 2011 New Revision: 218849 URL: http://svn.freebsd.org/changeset/base/218849 Log: MFC: revision 218391 Fix linking of the kernel without device npx. Modified: stable/8/sys/pc98/pc98/machdep.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/pc98/pc98/machdep.c ============================================================================== --- stable/8/sys/pc98/pc98/machdep.c Sat Feb 19 11:44:46 2011 (r218848) +++ stable/8/sys/pc98/pc98/machdep.c Sat Feb 19 11:47:48 2011 (r218849) @@ -2542,7 +2542,11 @@ fill_fpregs(struct thread *td, struct fp KASSERT(td == curthread || TD_IS_SUSPENDED(td), ("not suspended thread %p", td)); +#ifdef DEV_NPX npxgetregs(td); +#else + bzero(fpregs, sizeof(*fpregs)); +#endif #ifdef CPU_ENABLE_SSE if (cpu_fxsr) fill_fpregs_xmm(&td->td_pcb->pcb_user_save.sv_xmm, @@ -2566,7 +2570,9 @@ set_fpregs(struct thread *td, struct fpr #endif /* CPU_ENABLE_SSE */ bcopy(fpregs, &td->td_pcb->pcb_user_save.sv_87, sizeof(*fpregs)); +#ifdef DEV_NPX npxuserinited(td); +#endif return (0); }