Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2019 17:37:20 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348647 - stable/12/sys/riscv/riscv
Message-ID:  <201906041737.x54HbKMh003614@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906041737.x54HbKMh003614>