Mail Archives: djgpp/2000/07/04/00:33:03
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> writes:
> > From: Nate Eldredge <neldredge AT hmc DOT edu>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: 03 Jul 2000 12:55:56 -0700
> > >
> > > No, it won't, not unless you have a DPMI 1.0 server which supports
> > > page-level protection. Sorry.
> >
> > This is exactly what YAMD does, actually.
>
> I don't think so. IIRC, YAMD unmaps pages from the program's address
> space using a call that CWSDPMI supports (the same call that is
> requirted for NULL pointer protection). Electric Fence needs more
> than that: it needs protection at page level (as opposed to at segment
> level). I forget the details, but anyone who looks at the sources
> will see it.
???
No, they really are the same thing. Trust me ;-). Both of them call
mprotect(...,PROT_NONE). This causes one or more pages to be unmapped
from the process's address space. But neither use any more elaborate
"protection" than this.
Btw, the only other kinds of protection possible at the page level on
x86 are read-only (which is not useful in this kind of system) and
user/supervisor (which is obviously irrelevant), AFAIK.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -