Date: Tue, 9 Dec 1997 13:24:19 +0200 (IST) From: Eli Zaretskii To: Doug Gale cc: djgpp AT delorie DOT com Subject: Re: Un-map physical memory? In-Reply-To: <34879CFA.1D51@mailexcite.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 5 Dec 1997, Doug Gale wrote: > I am working on a function that will remap DOS memory into my heap. I'm not at all sure this could work. The DPMI 1.0 spec explicitly says that the linear address you pass as pmode_ptr should be an address of a memory block previously allocated with Int 31H Function 0504H, which you didn't call. It seems that you are trying to access the conventional memory without either far or near pointers. It would be very interesting to know whether this works, even only for DPMI 1.0 servers (CWSDPMI and 386max). Did you try this? If so, does it work? > int GL_RemapDOSMemory(void **pmode_ptr, void **map_block, unsigned > phys_addr, unsigned size) > { Please explain what kind of addreses will the user pass as `phys_addr'.