Mail Archives: djgpp/1994/11/29/18:43:02
> > One other problem is that you can't do anything in a real mode
> > callback (or interrupt) that might cause a mode switch. Basically,
> > you can do integer math and maybe call a function or two - it's pretty
> > limited. It may work sometimes, but it's not guaranteed.
>
> What happens if the real-mode callback/interrupt handler page faults?
There is some confusion here because of GO32 limitations in DPMI
emulation, and DPMI uses a different stack (which causes GCC problems unless
you switch off of it). If the real mode callback is connected from a
hardware interrupt, a page fault is fatal.
Get the DPMI spec and read it, look at the code in DPMI.C to see what
the wrapper functions do. I can't remember which cases we transparently
handle and which ones actually work.
- Raw text -