Mail Archives: djgpp/1999/02/28/09:09:23
On 26 Feb 1999, v. straka wrote:
> VESAmapping.address = mode_info.PhysBasePtr;
> VESAmapping.size = vesa_info.TotalMemory << 16;
> /* Why __dpmi_physical_address_mapping change VESAmapping.address ?!!!
> -> I mapped address X and then set selector to address Y */
> if (__dpmi_physical_address_mapping(&VESAmapping) != 0) return -1;
Did you read the docs of this function? That's exactly what it's
supposed to do. Here's what the library reference says:
Maps a physical device (like a graphics buffer) to linear memory. Fill
in the physical address and size (in bytes). On return, the address is
the linear address to use.
- Raw text -