Mail Archives: djgpp/2003/08/26/10:23:10
> Long (long...) time ago I was using a very useful feature of DJGPP.
> I'm talking about the linear frame buffer emulation for video cards
> with bank switching function only.
> Now this feature has been removed and I thought it was caused by DPMI
> server (no functions available for doing that).
> But after reading the functions available in DPMI I got the impression
> it could be done, at least a small part.
> I think it would be interesting to add a new selector by default,
> maybe called _vga_ds, in addition to _dos_ds, _my_ds, etc.
> Or I could be simply wrong and this method can't be done right now.
You want near pointers, see <sys/nearptr.h>
The thing that made the old linear frame buffers work so well was that
we could trap the page accesses (page faults) and remap video memory
to "catch" them. For today's cards, the best we can hope for is that
the card itself maps its memory into a linear frame buffer.
- Raw text -