delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/11:02:28

Date: Mon, 10 Mar 1997 17:38:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
cc: billc AT blackmagic DOT tait DOT co DOT nz, djgpp AT delorie DOT com
Subject: Re: RMCB Help
In-Reply-To: <199703101417.AA263213463@typhoon.rose.hp.com>
Message-ID: <Pine.SUN.3.91.970310173511.29057I-100000@is>
MIME-Version: 1.0

On Mon, 10 Mar 1997, Andrew Crabtree wrote:

> I thought the 
> 
> #include <crt0.h>
> int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY
> 
> did lock memory.  Are you saying I need to explicitly call lock for the
> functions and variables?

No, if you included the above setting, all memory is locked.  But you 
should make sure that it is indeed locked, since the startup code 
currently doesn't.  It shouldn't be a problem with small programs and 
machines which aren't too tight on RAM, though.

> Or is it the real mode memory I alloced that
> its complaining about?

AFAIK, you don't need to lock conventional memory at all, as it is never 
swapped out (or else DOS itself could be swapped out, which is an absolute 
no-no).

- Raw text -


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