svn commit: r217701 - in stable/7/sys/amd64: ia32 linux32
Jung-uk Kim
jkim at FreeBSD.org
Fri Jan 21 18:32:30 UTC 2011
Author: jkim
Date: Fri Jan 21 18:32:29 2011
New Revision: 217701
URL: http://svn.freebsd.org/changeset/base/217701
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/7/sys/amd64/ia32/ia32_signal.c
stable/7/sys/amd64/linux32/linux32_sysvec.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- stable/7/sys/amd64/ia32/ia32_signal.c Fri Jan 21 18:31:57 2011 (r217700)
+++ stable/7/sys/amd64/ia32/ia32_signal.c Fri Jan 21 18:32:29 2011 (r217701)
@@ -736,7 +736,6 @@ ia32_setregs(td, entry, stack, ps_string
regs->tf_ss = _udatasel;
regs->tf_cs = _ucode32sel;
regs->tf_rbx = ps_strings;
- load_cr0(rcr0() | CR0_MP | CR0_TS);
fpstate_drop(td);
/* Return via doreti so that we can change to a different %cs */
Modified: stable/7/sys/amd64/linux32/linux32_sysvec.c
==============================================================================
--- stable/7/sys/amd64/linux32/linux32_sysvec.c Fri Jan 21 18:31:57 2011 (r217700)
+++ stable/7/sys/amd64/linux32/linux32_sysvec.c Fri Jan 21 18:32:29 2011 (r217701)
@@ -860,7 +860,7 @@ exec_linux_setregs(td, entry, stack, ps_
regs->tf_ss = _udatasel;
regs->tf_cs = _ucode32sel;
regs->tf_rbx = ps_strings;
- load_cr0(rcr0() | CR0_MP | CR0_TS);
+
fpstate_drop(td);
/* Return via doreti so that we can change to a different %cs */
More information about the svn-src-stable-7
mailing list