delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/08/01:37:46

Date: Wed, 8 Nov 1995 08:22:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Brian Hook <bwh AT netcom DOT com>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Mapping physical->linear

On 7 Nov 1995, Brian Hook wrote:

> I need to map a region of physical memory into my program's 
> linear address space.  I don't know terribly much about DJGPP 
[snip]
> To do the above I used standard DPMI int 31h functions to map 
> my video card's address space from 0xA0000000 (physical 
> address, default for ATI GPT) into a linear address space.  The 
> resulting pointer could be used normally.  Not a lot to it.

The same can be done under v2.0, but you'll have to use either farptr or 
nearptr functions to access the mapped device.  They are documented on 
the library reference Info file (info/libc.inf).  The DPMI API calls are 
also documented there.

- Raw text -


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