X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Charles Sandmann 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: 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.