Mail Archives: djgpp-workers/2001/04/05/03:26:35
On Wed, 4 Apr 2001, Eli Zaretskii wrote:
> No, 0x10ffff is right from this point of view as well: the DPMI spec
> requires that the size be an integral multiple of 4KB, i.e. the size
> must be 0x110000, not 0x10fff0.
But only if it's greater than 64 kB. The reason is that the descriptor
has only 20 bits for the limit, and a flag to tell whether the high 12
bits are all zero or the low 12 bits all one. (Maybe we should print
the limit so that this restriction is obvious, like "0010f---", instead
of "0010ffff".)
--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/
- Raw text -