Sender: nate AT cartsys DOT com Message-ID: <37151F43.1FDF079C@cartsys.com> Date: Wed, 14 Apr 1999 16:05:39 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: cwsdpr0.exe 4/14/99 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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