svn commit: r337127 - head/sys/riscv/riscv

Ruslan Bukin br at FreeBSD.org
Thu Aug 2 12:13:53 UTC 2018


Author: br
Date: Thu Aug  2 12:13:52 2018
New Revision: 337127
URL: https://svnweb.freebsd.org/changeset/base/337127

Log:
  Don't overwrite tp in set_mcontext().
  
  This makes libthr/swapcontext_test:swapcontext1 happy.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/riscv/riscv/machdep.c

Modified: head/sys/riscv/riscv/machdep.c
==============================================================================
--- head/sys/riscv/riscv/machdep.c	Thu Aug  2 12:12:13 2018	(r337126)
+++ head/sys/riscv/riscv/machdep.c	Thu Aug  2 12:13:52 2018	(r337127)
@@ -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;
 


More information about the svn-src-head mailing list