www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/21/10:23:05

Date: Thu, 21 Mar 1996 17:16:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Cc: DJGPP AT delorie DOT com
Subject: Re: Hooking interrupts
In-Reply-To: <A692957842@fs2.mt.umist.ac.uk>
Message-Id: <Pine.SUN.3.91.960321171249.25106P-100000@is>
Mime-Version: 1.0

On Thu, 21 Mar 1996, A.Appleyard wrote:

>   I wrote (Hooking interrupts):-
> > In djgpp, IS there an easy way of hooking an interrupt? ...
>   Sorry: I just found an example in \djgpp\docs\djgpp\libc\libc.tex of how to
> do this. I just wrote this. (I still use v1. Would it work under v2?)

It seems like it should work (but I didn't actually try), with one 
correction: you should always lock code that hooks interrupts and data 
that is touched by the handler, or else your handler can be paged to disk 
when the interrupt hits.  In v1.x there was no mechanism to lock parts of 
memory in certain situations.

- Raw text -


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