Author: jkim
Date: Fri Jan 21 18:31:57 2011
New Revision: 217700
URL: http://svn.freebsd.org/changeset/base/217700

Log:
  MFC:  r217424
  
  Remove redundant, bogus, and even harmful uses of setting TS bit in CR0.
  It is done from fpstate_drop() when it is really necessary.

Modified:
  stable/8/sys/amd64/ia32/ia32_signal.c
  stable/8/sys/amd64/linux32/linux32_sysvec.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/amd64/ia32/ia32_signal.c
==============================================================================
--- stable/8/sys/amd64/ia32/ia32_signal.c       Fri Jan 21 18:18:55 2011        
(r217699)
+++ stable/8/sys/amd64/ia32/ia32_signal.c       Fri Jan 21 18:31:57 2011        
(r217700)
@@ -741,7 +741,6 @@ ia32_setregs(td, entry, stack, ps_string
        regs->tf_gs = _ugssel;
        regs->tf_flags = TF_HASSEGS;
 
-       load_cr0(rcr0() | CR0_MP | CR0_TS);
        fpstate_drop(td);
 
        /* Return via doreti so that we can change to a different %cs */

Modified: stable/8/sys/amd64/linux32/linux32_sysvec.c
==============================================================================
--- stable/8/sys/amd64/linux32/linux32_sysvec.c Fri Jan 21 18:18:55 2011        
(r217699)
+++ stable/8/sys/amd64/linux32/linux32_sysvec.c Fri Jan 21 18:31:57 2011        
(r217700)
@@ -875,7 +875,7 @@ exec_linux_setregs(td, entry, stack, ps_
        regs->tf_flags = TF_HASSEGS;
        regs->tf_cs = _ucode32sel;
        regs->tf_rbx = ps_strings;
-       load_cr0(rcr0() | CR0_MP | CR0_TS);
+
        fpstate_drop(td);
 
        /* Do full restore on return so that we can change to a different %cs */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to