Mail Archives: djgpp/1995/03/24/16:30:49
[snip]
>So I've included the little source code which install the interrupt handler.
>If you see what is wrong in it, please tell me.
>
1 - I'm not confident about calling printf() or most other library
routines inside an interrupt.
2 - You didn't set the selector before allocate_real_mode_callback_iret();
setting it to _go32_my_cs() seems to help stability. You may be
getting a keyboard interrupt in real mode, which then tries to
access your protected mode routine with a bad selector. Real mode
keyboard interrupts happen a lot -- maybe half the time by my informal
tests.
Setting the selector isn't in the info files; I think this is a
documentation bug, or an unimplemented feature in the dpmi library.
Carl Burke
- Raw text -