Turn on PCB_FULLCTX for set_mcontext, functions like kse_switchin

needs to fully restore asynchronous context which did not come
from fast syscall.
This commit is contained in:
David Xu 2004-07-31 14:02:29 +00:00
parent 484405eb8d
commit e3086a21e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132924

View file

@ -1533,6 +1533,7 @@ set_mcontext(struct thread *td, const mcontext_t *mcp)
tp->tf_rflags = rflags;
tp->tf_rsp = mcp->mc_rsp;
tp->tf_ss = mcp->mc_ss;
td->td_pcb->pcb_flags |= PCB_FULLCTX;
return (0);
}