Mail Archives: djgpp-workers/1998/01/07/08:29:39
> > I *can't* make it 0x10ffff. The 80386 CPU chip doesn't have that much
> > resolution. The size of segments larger than 64k must be multiples of
> > 4K. The closest 4k to 0x10ffff is 0x110000.
>
> You *can*. You even cannot do otherwise.
> You are right but the resolution for 20+ bits addresses, but a segment
> which has a size of N has a limit of N-1. The guys who wrote the DPMI
> spec's required (not in that many words, IIRC) you should pass the limit
> with the 12 LSbits set. Under CWSDPMI this causes the actual limit to be
> 4K more than you intended it to be, i.e 0x110FFF.
>
From the DPMI spec v0.9 section 8.8:
o Segment limits greater than 1 meg must be page
aligned. That is, limits greater than one
megabyte must have the low 12 bits set.
(also on page 63 of the v1.0 spec, with a small change)
- Raw text -