www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/21/17:45:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allocating memory....
Date: Thu, 21 Feb 2002 15:50:39 CST
Organization: Rice University, Houston TX
Lines: 12
Message-ID: <3c756baf.sandmann@clio.rice.edu>
References: <a531ko$od$1 AT sirius DOT dur DOT ac DOT uk>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1014328503 24223 128.42.105.3 (21 Feb 2002 21:55:03 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: 21 Feb 2002 21:55:03 GMT
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> ive been trying to allocate a piece of memory so that both teh host itself
> and a pci device reading straight from memory can acces it. 

There is no way to do this which works under all operating systems for
memory which would be in the DJGPP standard address space.

There is a way to get the physical address of a memory block under
CWSDPMI (see http://clio.rice.edu/djgpp/cwsdma2.zip for an example).

Under Windows you could try using DOS memory (which gets virtualized
1:1 mapping) - and this should also work for other DPMI providers.

- Raw text -


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