From: Adam Majer 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: References: <8fn6cd$p85$1 AT neptunium DOT btinternet DOT com> NNTP-Posting-Host: antares.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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