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

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;