svn commit: r189446 - head/sys/pc98/pc98

Takahashi Yoshihiro nyan at FreeBSD.org
Fri Mar 6 03:15:25 PST 2009


Author: nyan
Date: Fri Mar  6 11:15:24 2009
New Revision: 189446
URL: http://svn.freebsd.org/changeset/base/189446

Log:
  MFi386: 189423
  
    A better fix for handling different FPU initial control words for different
    ABIs.

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

Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c	Fri Mar  6 11:10:31 2009	(r189445)
+++ head/sys/pc98/pc98/machdep.c	Fri Mar  6 11:15:24 2009	(r189446)
@@ -1161,7 +1161,7 @@ cpu_idle_wakeup(int cpu)
 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)
@@ -1226,6 +1226,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


More information about the svn-src-head mailing list