Mail Archives: djgpp/1999/02/14/06:05:30
On Fri, 12 Feb 1999, Engard Ferenc wrote:
> My question is
> that it is enough to write a real-mode handler, or (if my program
> spend much time in protected mode), I need to write a protected-mode
> handler too for the best performance?
It's actually the other way around: you should install a PM handler
and keep your program in protected mode as much as possible, for the
best throughput. That's what the FAQ tries to explain in section
18.11.
Only if the above is not enough to keep up with the interrupt rate,
should you consider installing a real-mode handler.
> While the interrupts are disabled (I
> suppose I need to disable it in a hardware irq-handler), other
> hardware interrupts are lost? (E.g., data coming from kbd/serial is
> lost?)
Interrupts are not lost, unless you leave them disabled long enough to
lose more than a single interrupt from a single source. Otherwise,
they are just delayed until such time as you re-enable interrupts.
- Raw text -