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:
parent
e9aabe3b50
commit
3720a53426
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user