delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/09/06:28:45

Date: Tue, 9 Dec 1997 13:24:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Doug Gale <dgale AT mailexcite DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Un-map physical memory?
In-Reply-To: <34879CFA.1D51@mailexcite.com>
Message-ID: <Pine.SUN.3.91.971209132350.7213O-100000@is>
MIME-Version: 1.0

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'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019