Date: Mon, 13 Dec 1999 10:35:10 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gerald Hilderink cc: djgpp AT delorie DOT com Subject: Re: returning from interrupt with iret? In-Reply-To: <830rkp$m8s$1@dinkel.civ.utwente.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 12 Dec 1999, Gerald Hilderink wrote: > How can I program an inline "iret" assembly instruction in an interrupt > service routine (isr) that is registered by the dpmi protected mode > interface? If the ISR is coded in assembly, simply use IRET ;-). If it is coded in C, you should be using one of the _go32_dpmi_* functions to install it as an ISR, and the _go32_dpmi_* functions do an IRET for you. > I need to enforce an iret to perform a context switch in the isr. I don't understand what that means, in particular, what kind of ``context switch'' are you talking about. Some kinds of ``context switch'' are impossible in the DPMI environment (prohibited by the DPMI spec). > Is there technical information available about the _go32_dpmi functions? The docs in libc.info, and the source code in djlsr202.zip. If something is still unclear, please ask here.