PSL_RF inclusion in PSL_USERCHANGE for i386
- From: Roman Divacky <rdivacky@xxxxxxxxxxx>
- Date: Sun, 2 Sep 2007 19:39:54 +0200
hi
in i386/i386/machdep.c the set_regs() function sets i386 registers (called
by ptrace for example). it checks what eflags are being changed and compares
that with a mask of allowed flags to be changed. the mask is defined in psl.h
like this:
#define PSL_USERCHANGE (PSL_C | PSL_PF | PSL_AF | PSL_Z | PSL_N | PSL_T \
| PSL_D | PSL_V | PSL_NT | PSL_AC | PSL_ID)
PSL_RF (Flag to ensure single-step only happens once per instruction.). Can someone
tell me why this is omitted? I think its because of having in-kernel debugger.
User-mode Linux requires this to be allowed. So I wonder why this is disabled in FreeBSD.
(Linux itself does not check the eflags in any way).
thanks for answer, and/or pointer to answer
Roman Divacky
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: PSL_RF inclusion in PSL_USERCHANGE for i386
- From: Bruce Evans
- Re: PSL_RF inclusion in PSL_USERCHANGE for i386
- Prev by Date: Re: file locking.
- Next by Date: Re: Understanding interrupted system calls
- Previous by thread: Understanding interrupted system calls
- Next by thread: Re: PSL_RF inclusion in PSL_USERCHANGE for i386
- Index(es):
Relevant Pages
|
|