Mail Archives: djgpp/1997/12/15/14:15:18
jyoun AT user2 DOT teleport DOT com wrote:
>
> Hello,
>
> Does anyone know how to allocate 64k of dos memory aligned on a
> 64k page boundary? I have look through the dpmi functions but
> couldn't find anything relevent.
First a question: why would you want to do that? To what purpose?
Secondly, it is not directly possible to allocate onto a 64k page.
What you could do is allocating a block just large enough so that the
next block you will allocate is on a 64k boundary. Then you can free the
first block. But I can think of some problems, like the allocation
strategy.
But it seems to me that you want to do something that just creates a
problem while that isn't necessary?
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -