Mail Archives: djgpp/1999/04/14/20:50:08
yjtseng wrote:
>
> All right,
>
> Now, fact: CR0=0x80000019 which means paging is on. If I maps physical
> address 0xfb000000 to linear address using
> __dpmi_physical_address_mapping(&mi) as shown in FAQ 18.7, the returned
> linear address is 0xfb00000000 which the same as physical address
> 0xfb000000. How can this be? It does not make sense, right? Unless the
> paging mechanism is off, which is not true, as evidenced by CR0=0x80000019.
> Since paging is used, shouldn't the linear address be different from the
> physical address after Int 31H, function 0800H?
Not necessarily.
[(Over-)simplified explanation]
Paging uses a scheme whereby each page in the linear address space has a
page table entry, which contains an address in physical memory where the
page actually resides. This may (as in your case) or may not be the
same as the linear address.
Essentially all paging does is provide a level of indirection between
linear and physical memory. How the mapping works out is up to the DPMI
server.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -