delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/15/14:15:18

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dos memory alignment
Date: Mon, 15 Dec 1997 12:32:56 +0100
Organization: University of Ghent, Belgium
Lines: 23
Message-ID: <34951568.589B@rug.ac.be>
References: <671qjd$lt4$1 AT news1 DOT teleport DOT com>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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