Mail Archives: djgpp/2000/09/13/15:24:50
Hello.
Hans-Bernhard Broeker wrote:
>
> fakhri fki <ffkhr AT yahoo DOT com> wrote:
> > my program crash with a General protection fault when
> > I try to hook interrupt 0x31 DPMI service (not after hooking but
> > when I call
> > "__dpmi_set_protected_mode_interrupt_vector(0x31....)
> > " ). if there is
> > a solution to do that please tell me it ?
>
> I strongly doubt you can ever hook 0x31 in a DJGPP program. You'ld
> almost invariably end up with an endless loop, because you sawed away
> the branch the whole DJGPP runtime environment is sitting on.
This seems to have been discussed here before. I seem to remember that
Michael Bukin had some INT 0x31 hooking code. I toyed with the idea of
using it to implement some of the DPMI 1.0 spec under Windows, but never
gave it much thought.
Anyhow, this search may be useful:
http://www.delorie.com/djgpp/mail-archives/search.cgi?search=INT31+handler&since=&db=djgpp
That should all be one line. Going to:
http://www.delorie.com/djgpp/mail-archives/search.cgi
and typing 'dpmi michael bukin' also turned up a lot. Don't bother with
0x31 - it's not in the index.
Bye,
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -