Mail Archives: djgpp-workers/1996/12/17/12:16:32
> > It used to be 1Mb. People complained that it should be 16Mb, to cover
> > the original 286 address space and some I/O boards. Then people
> > complained that it needed to cover the Weitek I/O space. Then people
> > wanted it to contain the linear frame buffer for SVGA boards. So now
> > it's a 4G segment.
>
> Another case of creeping featurism, then. Thanks for the info.
A semi-broken one in this case - no memory outside the 1Mb address space
will be properly mapped without additional calls - in which case the
DPMI provider may put the Weitek or SVGA address someplace completely
different than you expect. The only way to then guarantee access to
the mapped memory is via a separate selector (since large limit hacks
may be ignored if they span non-owned memory). So, use of this "feature"
will probably break code on some DPMI platforms, and should not be used.
But I'll say the same thing about nearptrs, too, which I wrote. Just beware
these features that encourage bad coding practices - if you use dos_ds
you must use an selector anyway - so other than the one line to set it
up a custom selector nothing is gained.
- Raw text -