www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/24/16:30:49

Date: Fri, 24 Mar 1995 14:25:53 -0500
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: cburke AT mitre DOT org (Carl D. Burke)
Subject: Re: Again : intercept the Keyboard interrupt

[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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019