1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Fix the "fpudna: fpcurthread == curthread XXX times" problem.

Tested by: kris@
Reviewed by:	peter@
MFC after:	3 days
This commit is contained in:
Stephan Uphoff 2005-09-22 15:46:21 +00:00
parent 3fafa27b27
commit 2a988f7cb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150473

View File

@ -806,6 +806,7 @@ exec_linux_setregs(td, entry, stack, ps_strings)
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 */
pcb->pcb_flags |= PCB_FULLCTX;