Date: Thu, 1 Nov 2018 22:13:22 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340027 - head/sys/riscv/riscv Message-ID: <201811012213.wA1MDMLV033463@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811012213.wA1MDMLV033463>