Mail Archives: djgpp/1999/12/06/07:46:57
On Sun, 5 Dec 1999, Prashant TR wrote:
> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
> >This probably means that you should use the real-mode interface, since
> >mixing 16-bit code with 32-bit code in the DPMI environment is tricky,
> >if not impossible.
>
> Out of curiosity, could you give me a brief idea of how it works?
> If I ever need to do this, should I first create a descriptor and then
> try changing the access rights, or is it something totally different?
I suggest to begin by looking at the DJGPP startup code (crt0.S). It
includes some code for the 16-bit setup (required by the DPMI spec and
to free the selectors that are used as long as 32-bit code runs).
In general, the DPMI 0.9 spec disallows mixing 16-bit and 32-bit DPMI
programs in the same virtual machine, so you cannot set up a 16-bit
code and data segments and then run 16-bit code that uses them from a
normal (i.e. 32-bit) DJGPP program.
- Raw text -