Date: Thu, 5 Nov 1998 10:04:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Denis B�langer <dbelang AT mediom DOT qc DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Problems with dpmi address mapping under dos and win 3.1
In-Reply-To: <01be0886$5ae74b60$458860cf@dbelang>
Message-ID: <Pine.SUN.3.91.981105100131.2883Q-100000@is>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id DAA01832
Reply-To: djgpp AT delorie DOT com


On Thu, 5 Nov 1998, Denis B�langer wrote:

> I need a selector for access a pci card. Under windows 95 ms-dos box a my
> program works fine and I can access the card. But when I try the same
> program in an ms-dox bos under windows 3.1 or under dos with cwsdpmi the
> program always halt at the same place. The call to
> __dpmi_physical_address_mapping fail and my program exit.

Since this happens on Windows 3.X as well, it's not CWSDPMI.  Maybe it's 
some other piece of software installed in that configuration.  For 
example, do you have EMM386 and/or HIMEM there?  If so, try without them, 
at least in DOS.

>   r.w.ax = 0x1686;
>   int386(0x2f, &r, &r);

This is redundant: you cannot be executing DJGPP code without being in 
protected mode.