Author: jhb
Date: Thu Nov  1 22:13:22 2018
New Revision: 340027
URL: https://svnweb.freebsd.org/changeset/base/340027

Log:
  Don't allow debuggers to modify SSTATUS, only to read it.
  
  Reviewed by:  markj
  Sponsored by: DARPA
  Differential Revision:        https://reviews.freebsd.org/D17771

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

Modified: head/sys/riscv/riscv/machdep.c
==============================================================================
--- head/sys/riscv/riscv/machdep.c      Thu Nov  1 22:13:18 2018        
(r340026)
+++ head/sys/riscv/riscv/machdep.c      Thu Nov  1 22:13:22 2018        
(r340027)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to