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:
davidxu 2004-07-31 14:02:29 +00:00
parent e9aabe3b50
commit 3720a53426

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);
}