Don't allow debuggers to modify SSTATUS, only to read it.
Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D17771
This commit is contained in:
parent
3c3779dc20
commit
344adeab18
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user