mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Don't overwrite tp in set_mcontext().
This makes libthr/swapcontext_test:swapcontext1 happy. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
84154f4b9e
commit
385a185b43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337127
@ -342,7 +342,6 @@ set_mcontext(struct thread *td, mcontext_t *mcp)
|
||||
tf->tf_ra = mcp->mc_gpregs.gp_ra;
|
||||
tf->tf_sp = mcp->mc_gpregs.gp_sp;
|
||||
tf->tf_gp = mcp->mc_gpregs.gp_gp;
|
||||
tf->tf_tp = mcp->mc_gpregs.gp_tp;
|
||||
tf->tf_sepc = mcp->mc_gpregs.gp_sepc;
|
||||
tf->tf_sstatus = mcp->mc_gpregs.gp_sstatus;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user