Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 2009 11:15:24 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189446 - head/sys/pc98/pc98
Message-ID:  <200903061115.n26BFOml017667@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903061115.n26BFOml017667>