Author: nyan
Date: Thu Mar 26 17:04:08 2009
New Revision: 190444
URL: http://svn.freebsd.org/changeset/base/190444

Log:
  MFC: r189446
  
    Allow different ABIs to use different initial control words for the FPU.
  
  Approved by:  re (Kostik Belousov)

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/pc98/pc98/machdep.c

Modified: stable/7/sys/pc98/pc98/machdep.c
==============================================================================
--- stable/7/sys/pc98/pc98/machdep.c    Thu Mar 26 16:42:24 2009        
(r190443)
+++ stable/7/sys/pc98/pc98/machdep.c    Thu Mar 26 17:04:08 2009        
(r190444)
@@ -1155,7 +1155,7 @@ cpu_idle(void)
 void (*cpu_idle_hook)(void) = cpu_idle_default;
 
 /*
- * Clear registers on exec
+ * Reset registers to default values on exec.
  */
 void
 exec_setregs(td, entry, stack, ps_strings)
@@ -1220,6 +1220,7 @@ exec_setregs(td, entry, stack, ps_string
         * emulators don't provide an entry point for initialization.
         */
        td->td_pcb->pcb_flags &= ~FP_SOFTFP;
+       pcb->pcb_initial_npxcw = __INITIAL_NPXCW__;
 
        /*
         * Drop the FP state if we hold it, so that the process gets a
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to