delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/08/05:03:38

Date: Mon, 8 Jan 1996 11:52:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martynas Kunigelis <algikun AT santaka DOT sc-uni DOT ktu DOT lt>
Cc: djgpp AT delorie DOT com
Subject: Re: Locking the HW intr. handlers

On Sun, 7 Jan 1996, Martynas Kunigelis wrote:

> after reading messages about cwsdpmi 9 and the interrupt handlers causing 
> page faults I have the following question to C. Sandmann: suppose I don't 
> use _go32_allocate_iret_wrapper but write my own intr. handler in assembler
> and give it the right DS by updating its code directly. Do I still have to do 
> any locking or is code segment (text section) already locked in djgpp? I 
> mean is any peace of *code* ever being paged out? If so, how do I lock a 
> peace of memory where my handler resides? 

I'd suggest that you first try to lock everything.  There is a bit you 
can set in _crt0_startup_flags that will cause all of the memory to be 
locked.  You can find the description of that bit in the library Info 
docs.  Then, after you debug your program with all the memory locked, you 
can get to locking only the parts you need.

- Raw text -


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