Mail Archives: djgpp/2003/07/11/20:15:10
> Both programs are compiled by DJGPP v2.03, gcc 3.23. DPMI host is
> CWSDPMI v5. I use CWSPARAM to disable virtual memory, so no paging
> will occur. And in program (2), ALL hareware interrupt are disabled
> expect IRQ7, main() is an infinite loop: for (;;) {}. Therefore,
> technically, no mode switching will occur in program (2) during test.
> I use logical analyzer to capture the interrupt latency (time between
> the low-to-high edge of interrupt source signal from program (1) to
> low-to-high edge of signal from program (2)). Normally, the latency is
> less than 6 microseconds, which is really reasonable. However,
> sometimes (in 1 or 2 hours), a very large latency, 30 to 60
> microseconds, can be observed.
There is nothing in the software which should caus this to happen.
I suspect that something in the hardware triggers this - maybe a
NMI - or a bus reset.
You might try PMODE (which has an even lower latency) to see how it
works for you. Since it doesn't enable paging, maybe the hardware
will respond differently, I don't know.
- Raw text -