www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/13/04:41:00

Date: Thu, 13 Aug 1998 10:55:31 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Endlisnis <s257m AT unb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Page Boundaries
In-Reply-To: <35D25BB4.EC72F30C@unb.ca>
Message-ID: <Pine.SUN.3.91.980813105510.2812N-100000@is>
MIME-Version: 1.0

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

- Raw text -


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