www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/13/07:36:13

Date: Mon, 13 Dec 1999 10:35:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gerald Hilderink <g DOT h DOT hilderink AT el DOT utwente DOT nl>
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: <Pine.SUN.3.91.991213103453.29470M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


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