svn commit: r348647 - stable/12/sys/riscv/riscv

Mark Johnston markj at FreeBSD.org
Tue Jun 4 17:37:21 UTC 2019


Author: markj
Date: Tue Jun  4 17:37:20 2019
New Revision: 348647
URL: https://svnweb.freebsd.org/changeset/base/348647

Log:
  MFC r340027 (by jhb):
  Don't allow debuggers to modify SSTATUS, only to read it.

Modified:
  stable/12/sys/riscv/riscv/machdep.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/machdep.c
==============================================================================
--- stable/12/sys/riscv/riscv/machdep.c	Tue Jun  4 17:31:59 2019	(r348646)
+++ stable/12/sys/riscv/riscv/machdep.c	Tue Jun  4 17:37:20 2019	(r348647)
@@ -178,7 +178,6 @@ set_regs(struct thread *td, struct reg *regs)
 
 	frame = td->td_frame;
 	frame->tf_sepc = regs->sepc;
-	frame->tf_sstatus = regs->sstatus;
 	frame->tf_ra = regs->ra;
 	frame->tf_sp = regs->sp;
 	frame->tf_gp = regs->gp;


More information about the svn-src-stable mailing list