delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/14/09:30:30

From: shc103 AT york DOT ac DOT uk (Steve Carter)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Page Boundaries
Date: 14 Aug 1998 12:23:53 GMT
Organization: The University of York, UK
Lines: 30
Sender: shc103 AT york DOT ac DOT uk
Message-ID: <6r1a8p$c7o$4@pump1.york.ac.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980813105510 DOT 2812N-100000 AT is>
NNTP-Posting-Host: tower.york.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:

: On Thu, 13 Aug 1998, Endlisnis wrote:

: > I need to know that too.  I want to use __djgpp_map_physical_memory, but it
: > says I need a page-aligned data-block.  What is page-aligned and how to I
: > create/calculate a page-aligned address.

: That's something entirely different.  Page-aligned in this context
: means aligned on the 4KB pages used by the PC paging and virtual
                       ^
                       64k, I think!
: memory mechanisms.

: You get such pages either by calling `sbrk' or by allocating a larger
: block with `malloc' and using a part thereof whose starting address
: has its lower 12 bits zeroed.

Thanks.  I was wondering, but I don't think it's possible:  How about
mallocing a 128K block, to guarantee getting a whole page in there
somewhere, then free()ing parts of that block that aren't used?  I presume
this is not possible...

-- 
Spam highlights #1 in a series
MOST ESCLUSIVE PRODUCTS AND SERVICES AVAILABLE 
1/.Sofware. Turbo Dinc 200.Compression,increase your velocity in internet.
2/.New and revolucionary kit proteccion lamp-shade, 100 x 100.PROTECCION
VISION.relax and confort.
3/.New special cassette.Hipno Neurologiacal Biomusic..3D..THE POWER OF MIND.

- Raw text -


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