delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/08/18/13:15:40

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "rickbronson AT gmail DOT com" <rickbronson AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: freedos and cwsdpmi with djgpp under Linux?
Date: Tue, 18 Aug 2009 10:04:56 -0700 (PDT)
Organization: http://groups.google.com
Lines: 39
Message-ID: <af14bd7c-f2ed-4d59-bac8-59c374604d9e@a37g2000prf.googlegroups.com>
References: <ddc847db-306e-496a-999a-34c0542c7a9b AT g31g2000yqc DOT googlegroups DOT com>
<G5OdnX1ixc6NZhTXnZ2dnUVZ_oednZ2d AT earthlink DOT com>
NNTP-Posting-Host: 98.232.231.2
Mime-Version: 1.0
X-Trace: posting.google.com 1250615096 19244 127.0.0.1 (18 Aug 2009 17:04:56 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 18 Aug 2009 17:04:56 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: a37g2000prf.googlegroups.com; posting-host=98.232.231.2;
posting-account=uzptqgkAAABqsyRikuPIddJdkRRcix69
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1)
Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Are you running your app in a dos window under Linux, or on a plain
> DOS machine?

  A plain DOS machine running FREEDOS.

> In other words, I never do that, I just
> let the stub load CWSDPMI (found in my %PATH%) if needed.

  I've tried many number of methods to make this work.  I picked just
one above.

> If you absolutely need an XMS block, you need to
> "prepare" for it before running CWSDPMI (such as
> allocate the block you need, allocate a second tiny block,
> release the first block).

  I don't suppose you have an example of this method?

  Basically I need a 1 Megabyte DMA buffer for a PCI card that has DMA
capability.

  I got both cwsdma.zip and cwsdma2.zip, thanks for passing those
along.  When I run #2 I get:

Allocated 8M DMA buffer at DJGPP address 0x93b00, physical 0x113b00
Virtual: 0x1000  Physical: 0x100000  Size: 0x13000
Virtual: 0x91000  Physical: 0x916000  Size: 0x1000
Virtual: 0x92000  Physical: 0x914000  Size: 0x1000
Virtual: 0x93000  Physical: 0x113000  Size: 0x1000
Virtual: 0x94000  Physical: 0x115000  Size: 0x7ff000
Virtual: 0x893000  Physical: 0x114000  Size: 0x1000
Virtual: 0x897000  Physical: 0x915000  Size: 0x1000

  Looking at the Physical address, it's apparent that they are not
contiguous.  If I used XMS would I get a contiguous one?

  Thanks very much for all the help!

  Rick

- Raw text -


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