mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
2 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue