Mail Archives: djgpp-workers/1998/01/14/09:23:18
> Are you talking about the user-defined callback here, or about the
> DJGPP handler which is on exceptn.S?
The user-defined callback should be very simple. If it calls
functions with arguments, uses any registers which aren't saved,
accesses automatic variables with DS or is compiled -fomit-frame-pointer
things may break. Since this is a hardware interrupt routine,
try some complicated routines under various DPMI providers and see
how it behaves. At the very least, I think there should be
a pushal/popal around the user routine, save all seg regs, and
set up ES also. There is still the SS/DS mismatch, but if you
don't call anything you are probably OK.
All conjecture from inspection...
- Raw text -