Don't overwrite tp in set_mcontext().

This makes libthr/swapcontext_test:swapcontext1 happy.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2018-08-02 12:13:52 +00:00
parent 84154f4b9e
commit 385a185b43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337127

View File

@ -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;