Mail Archives: djgpp/1994/10/05/02:13:13
Hi!
This message is addressed to Dong Liu (regarding his mouse callback
problem) and to all users of real-mode callback. This question becomes
a FAQ now.
In Real mode callbacks DO NOT enable() and DO disable().
Doing so in mouse callback causes, that it works flawlessly.
Why it works with both the instruction above under real DPMI?
1. DPMI specyfication says, that callbacks are called with interrupts
disabled. That is not true in case of go32 simulated DPMI.
2. Under DPMI sti and cli may be virtualized. It means, that they last
long (require two task switches) and may not really enable or disable
interrupts (disabling interrupts in multitasking environment may be
really harmful.
Grzegorz W. Jablonski
- Raw text -