Mail Archives: djgpp/1999/04/22/07:06:58
On Wed, 21 Apr 1999, yjtseng wrote:
> Question: Can I now use __dpmi_physical_address_mapping( physical_base_addr,
> SIZE) to get a linear_base_addr2 for the allocated memory so that it cam be
> used to access the same physical memory? Should linear_base_addr2 be the
> same as linear_base_addr1?
I think the mapping of the linear address to the physical one can only
change if the DPMI host or the underlying OS swaps some pages out or
in. Otherwise, I think the mapping should stay put.
Note that the base address associated with _my_ds() can also change;
see the discussion of the nearptr technique in the FAQ.
- Raw text -