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