Mail Archives: djgpp/2002/06/08/15:58:01
Martin Steuer <martinSteuer AT gmx DOT de> wrote:
: While examining the source of the wrapper in gopint.c I found that it does
: not issue a 'sti' before returning with 'iret'.
: So I wonder if this is ok, as the DPMI Spec. says that 'popf' and thus also
: 'iret' may not modify the interrupt flag, wouldn't this leave the
: interrupts disabled?
: I realize that the wrapper is also written for software interrupts where
: the interrupts aren't disabled. Then of course this is the right behaviour,
: but it would mean that one must issue a 'sti' within your interrupt handler
: if the wrapper is used for hardware interrupts. Is this right?
: Please tell me if i'm mistaken.
If interrupts were enabled before the interrupt came along, the iret
that returns control to the interrupted code should enable them again
as the IF is set in the image on the stack.
Right,
MartinS
- Raw text -