Date: Thu, 21 Mar 1996 17:16:11 +0200 (IST) From: Eli Zaretskii To: "A.Appleyard" Cc: DJGPP AT delorie DOT com Subject: Re: Hooking interrupts In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.