delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/13/09:02:37

Date: Tue, 13 Jun 2000 13:39:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rob Kramer <robk AT cyberway DOT com DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP and Mapping physical memory from a PCI device
In-Reply-To: <MPG.13b021c16a39c65d98969a@news.cyberway.com.sg>
Message-ID: <Pine.SUN.3.91.1000613133915.16888Z-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 13 Jun 2000, Rob Kramer wrote:

>     /* Lock segment (dpmi 0x0600). */
>     if (__dpmi_lock_linear_region (&info) == -1) {
>         __dpmi_free_ldt_descriptor (selector);
>         return false;
>     }

I don't think this is required: the mapped region is already locked by
the DPMI host.  In fact, with some DPMI hosts this call will actually
fail, thus creating an illusion that the whole map operation didn't
work.

- Raw text -


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