www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/05/02:41:54

Date: Wed, 5 May 1999 09:38:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rebecca <REBECCA AT TIGRIS DOT KLTE DOT HU>
cc: djgpp mailing <djgpp AT delorie DOT com>
Subject: Re: locking whole code
In-Reply-To: <Pine.VMS.3.91-A.990504171251.50784C-100000@tigris.klte.hu>
Message-ID: <Pine.SUN.3.91.990505093812.23088C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 4 May 1999, Rebecca wrote:

> During interrupt handling I want to call some 
> functions which is written by somebody else ( GRX20 ) and I don't know 
> which other procedures it calls. I think I should lock the whole code ( 
> and only the code ) because it solves that I don't know the amount of 
> area to lock. So my question is. How can I lock the whole code?

You need to lock all the data as well, because neither code nor data
can be swapped in when you are in a real-mode callback.

The way to do it is explained in the FAQ (sections 18.9 and 18.11):
use the `_CRT0_FLAG_LOCK_MEMORY' bit in the `_crt0_startup_flags'
variable.

- Raw text -


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