Mail Archives: djgpp-workers/1998/01/07/08:19:16
DJ Delorie wrote:
>
> > You should make it 0x10FFFF. Please read my previous email which
> > explains why. The reason it works under DOS is simply because CS has
> > more brains than other DPMI implementors.
>
> 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.
Please read my previous email on...
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -