Mail Archives: djgpp/1996/08/21/03:23:30
On Mon, 19 Aug 1996, Bruce Foley wrote:
> do this from a DPMI program? Since the system will be in real mode at
> the time of the interrupt, it cannot call my protected mode routine.
> I know I could just poll int 33 directly from my program (using
> standard real to dpmi reflection), but this seems like a waste, given
> most of the time it won't be returning anything useful...
You need to wrap your protected-mode function with a real-mode stub.
The library function `_go32_dpmi_allocate_real_mode_callback_retf' is the
vehicle to do that. The DJGPP FAQ list (available as v2/faq201b.zip from
the same place you get DJGPP) has more details about this in section 18.8.
- Raw text -