X-Originating-Host: 202.158.46.2 Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here Subject: Q : DPMI 1.0 Function 0x508 Lines: 18 From: batchex Newsgroups: comp.os.msdos.djgpp Message-ID: <335f5dbc.512a16ab@usw-ex0105-036.remarq.com> Bytes: 802 X-Wren-Trace: eLKXv76n4Krh5q6/s/OhsPGBsr+ls/Ovsqzzv76y66Dt5rzi6arp6Oj95A== Date: Tue, 04 Apr 2000 13:02:13 -0700 NNTP-Posting-Host: 10.0.2.36 X-Complaints-To: wrenabuse AT remarq DOT com X-Trace: WReNphoon2 954878247 10.0.2.36 (Tue, 04 Apr 2000 12:57:27 PDT) NNTP-Posting-Date: Tue, 04 Apr 2000 12:57:27 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I read in the FAQ section 18.7 that it is possible to map a physical memory range to a program's address space. The restriction to this is the physical address and the address to be mapped to must be page aligned. My question is : a. How do we ensure the mapped to address is page aligned? b. How do we ensure there is enough space to map the physical memory range? c. If the physical address is a memory mapped i/o, do we need to lock the mapped address? d. If using int 0x31 call, where the memory handle can be found? Almost forgot, the function I'm talking about is DPMI 1.0 function 0x508 or __djgpp_map_physical_memory(). * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * The fastest and easiest way to search and participate in Usenet - Free!