diff options
author | emaste <emaste@FreeBSD.org> | 2013-11-25 15:58:48 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-11-25 15:58:48 +0000 |
commit | b0519089ed0efd8b8d92d24e9d972cfdb513232a (patch) | |
tree | 1700a610df043601614f2bd2a345a3bca0ec7cd6 /sys/i386/include | |
parent | 79f55b704935cf6e1a4f60d33d1ce87bcf710f08 (diff) | |
download | FreeBSD-src-b0519089ed0efd8b8d92d24e9d972cfdb513232a.zip FreeBSD-src-b0519089ed0efd8b8d92d24e9d972cfdb513232a.tar.gz |
MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)
Debuggers may need to change PSL_RF. Note that tf_eflags is already stored
in the signal context during signal handling and PSL_RF previously could
be modified via sigreturn, so this change should not provide any new
ability to userspace.
For background see the thread at:
http://lists.freebsd.org/pipermail/freebsd-i386/2007-September/005910.html
Reviewed by: jhb, kib
Sponsored by: DARPA, AFRL
Approved by: re (gjb)
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/vm86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/include/vm86.h b/sys/i386/include/vm86.h index e33d720..2253d5c 100644 --- a/sys/i386/include/vm86.h +++ b/sys/i386/include/vm86.h @@ -113,7 +113,7 @@ struct vm86context { } pmap[VM86_PMAPSIZE]; }; -#define VM_USERCHANGE (PSL_USERCHANGE | PSL_RF) +#define VM_USERCHANGE (PSL_USERCHANGE) #define VME_USERCHANGE (VM_USERCHANGE | PSL_VIP | PSL_VIF) struct vm86_kernel { |