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:
parent
c6397d3f0e
commit
bdbf2db5b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217424
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user