Mail Archives: djgpp/1998/08/13/04:41:00
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 -