Date: Sun, 2 Apr 2000 09:47:38 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Alexei A. Frounze" cc: djgpp AT delorie DOT com Subject: Re: keyboard interrupt In-Reply-To: <38DFE9E5.37B0F318@mtu-net.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 28 Mar 2000, Alexei A. Frounze wrote: > But what if IRQ comes when segment registers are different than usual > for a program written in DJGPP (in ASM block/C library or whatever)? It > won't work. Yes, it will work: the wrapper code provided by the library function _go32_dpmi_allocate_iret_wrapper takes care of restoring the segment registers and switching the stack _before_ it calls the user-defined handler. This is all explained in the FAQ (section 18.9) and in the library docs, which see.