Mail Archives: djgpp/1996/11/13/11:24:59
On Wed, 13 Nov 1996, Koen Van Herck wrote:
> *A* : Use the `__dpmi_physical_address_mapping' library function.
> ...
> If you prefer to create the mapping yourself,
> these are the DPMI calls that you will have to use:
>
> - allocate an LDT descriptor (Int 31h/AX=0);
> - map selector to physical address (Int 31h/AX=0800h);
> - lock linear address (Int 31h/AX=0600h);
> - set segment base address (Int 31h/AX=7);
> - set segment limit (Int 31h/AX=8).
>
> Now, what is meant exactly with "doing it yourself" ? Does this mean
> that I use either __dpmi_physical_address_mapping or the five points above.
>
> If so, then how do I do point 2 ? Isn't this what
> __dpmi_physical_address_mapping does ?
>
> Or is __dpmi_physical_address_mapping equivalent to all 5 points together?
Hmmm... looks like this FAQ section is a left-over from my misconception
about what `__dpmi_physical_address_mapping' does. In reality it only
accomplishes step 2 above, you are right. I will correct this in the
next revision of the FAQ.
- Raw text -