Mail Archives: djgpp/1997/12/09/06:28:45
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 -