www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/12:46:52

From: samir AT mindspring DOT com (Samir Barjoud)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allocate physical memory?
Date: Sat, 28 Mar 1998 12:29:52 -0500
Organization: MindSpring Enterprises
Lines: 18
Message-ID: <MPG.f86fd9ab9a6af4498968b@news.miami.mindspring.com>
References: <D1FB30BBA491D1118E6D006097BCAE391BEA22 AT Probe-nt-2a DOT Probe DOT co DOT uk> <351c26a2 DOT sandmann AT clio DOT rice DOT edu> <9pFc+WA$oMH1EwRj AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: user-38lc2k7.dialup.mindspring.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <9pFc+WA$oMH1EwRj AT talula DOT demon DOT co DOT uk>, 
Shawn AT talula DOT demon DOT co DOT uk says...
> I just wanted to check how practical this would actually be, and
> for now it seems like my best plan will be to develop the code under
> win95, and then once I have something working, either look at ways to
> make CWSDPMI support it myself, or start pestering you to add it!

Why don't you use the "Fat DS" hack, which works under Win95 and DOS.
Sandmann has an example out there of how to use it to directly access  
the VESA 2.0 linear frame buffer. If I understand you correctly,
you want to be able to do a PCI bus master transfer under both Win95
and DOS. To do this you could allocate a suitably sized and aligned 
buffer, anywhere in memory. You would then lock the allocated memory
and get its physical address. 

-- 
Samir Barjoud
samir AT mindspring DOT com

- Raw text -


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