Author: nyan
Date: Mon Feb  7 07:52:53 2011
New Revision: 218391
URL: http://svn.freebsd.org/changeset/base/218391

Log:
  MFi386: revision 218329
  
    Fix linking of the kernel without device npx.

Modified:
  head/sys/pc98/pc98/machdep.c

Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c        Mon Feb  7 07:51:31 2011        
(r218390)
+++ head/sys/pc98/pc98/machdep.c        Mon Feb  7 07:52:53 2011        
(r218391)
@@ -2565,7 +2565,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,
@@ -2589,7 +2593,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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to