Date: Tue, 13 Jun 2000 13:39:35 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Rob Kramer cc: djgpp AT delorie DOT com Subject: Re: DJGPP and Mapping physical memory from a PCI device In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.