Mail Archives: djgpp/1997/03/16/13:19:02
Laurentiu Badea writes:
>My interrupt handler is designed to be "reentrant" (if another
>interrupt arrives while the current one is still served, then
>my handler just counts it), as in the attached simple program.
>Then why it hangs or keeps reporting 0 "lost irqs", at best ?
The interrupt wrappers produced by _go32_dpmi_allocate_iret_wrapper are
indeed not reentrant, because they only allocate a single stack for the
handler to use. To make this work you need to write your own asm wrapper
routine: look at the files irq.c and irqwrap.s from Allegro for an
example of how to do this...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -