On Jul 5, 1:17 am, "Rod Pemberton" <spamt...@[EMAIL PROTECTED]
> wrote:
> Is the *entire* IRQ 2 routine wrapped in CLI/STI also?
No, it's not. Should it be? The interrupt handler is called by a
hardware interrupt, and I was under the impression that, on entry to
an interrupt handler, processor interrupts are disabled as if CLI were
called. At the end of my handler is an EOI (to tell the PIC the
hardware interrupt has been serviced), and then IRET, which I thought
set the interrupt flag again. Am I misunderstanding something?
> TSR's usually check the InDOS flag prior to calling DOS to prevent
> reentrancy problems. Is it possible that the lockup you're getting is
> *somehow* a reentracy problem: IF flag problem, interruptable Pascal
code in
> IRQ2, etc.?
The interrupt handler doesn't call BIOS or DOS functions, and the only
shared code it calls, I wrap CLI/STI around in the main program so
that the interrupt can't be running when I call said code.


|