mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
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
484405eb8d
commit
e3086a21e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132924
|
@ -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…
Reference in a new issue