Mail Archives: djgpp/1999/04/06/17:44:24
Martin Str|mberg wrote:
>
> Nate Eldredge (nate AT cartsys DOT com) wrote:
> : The INT instruction works even with interrupts disabled.
>
> How can that be? How can I issue an INT when interrupts are disabled?
The IF flag actually enables and disables only hardware interrupts.
From the 386 manual:
"The IF (interrupt-enable flag) controls the acceptance of external
interrupts signalled via the INTR pin."
In fact, it explains that software interrupts (INT etc) are actually
handled as exceptions.
> : Whether the other INT 0x31 handler is okay with having interrupts
> : disabled on entry is another question, though. But I suspect it's
> : probably okay.
>
> Aren't interrupts disabled on entry of an interrupt handler?
In most cases. You should probably consult the DPMI spec for the real
story, though.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -