Remove redundant, bogus, and even harmful uses of setting TS bit in CR0.

It is done from fpstate_drop() when it is really necessary.

Reviewed by:	kib
MFC after:	1 week
This commit is contained in:
Jung-uk Kim 2011-01-14 21:09:01 +00:00
parent c6397d3f0e
commit bdbf2db5b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217424
2 changed files with 1 additions and 2 deletions

View File

@ -741,7 +741,6 @@ ia32_setregs(struct thread *td, struct image_params *imgp, u_long stack)
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 */

View File

@ -865,7 +865,7 @@ exec_linux_setregs(struct thread *td, struct image_params *imgp, u_long stack)
regs->tf_flags = TF_HASSEGS;
regs->tf_cs = _ucode32sel;
regs->tf_rbx = imgp->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 */