Date: Thu, 13 Aug 1998 10:55:31 +0300 (IDT) From: Eli Zaretskii To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Page Boundaries In-Reply-To: <35D25BB4.EC72F30C@unb.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.