delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/15/19:46:54

From: Adam Majer <ummajera AT cc DOT UManitoba DOT CA>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DPMI GPF problem
Date: Mon, 15 May 2000 18:36:09 -0500
Organization: The University of Manitoba
Lines: 18
Message-ID: <Pine.GS4.4.02A.10005151834040.14819-100000@antares.cc.umanitoba.ca>
References: <8fn6cd$p85$1 AT neptunium DOT btinternet DOT com>
NNTP-Posting-Host: antares.cc.umanitoba.ca
Mime-Version: 1.0
X-Trace: canopus.cc.umanitoba.ca 958433771 2317 130.179.16.26 (15 May 2000 23:36:11 GMT)
X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca
NNTP-Posting-Date: 15 May 2000 23:36:11 GMT
In-Reply-To: <8fn6cd$p85$1@neptunium.btinternet.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 14 May 2000, Malcolm Herring wrote:

> I need to map to a physical address range to access a memory-mapped device.
> The following code fragments is how I have tried to do it, but this results
> in a GPF when 'movedatal' is called.

To map physical memory (like DMA) you need to use VDS (Virtual DMA
Specifications). They are found on MS site. They are supported by most
DPMI servers.

If you want to access video memory, you need to get the memory mapping
first. You cannot simply translate it yourself as in real mode since
paging is usually on.

    Sincerely,
    Adam


- Raw text -


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