Mail Archives: djgpp-workers/1999/06/02/02:48:15
On Tue, 1 Jun 1999, Charles Sandmann wrote:
> > The source code of __dpmi_simulate_real_mode_procedure_retf_stack is
> > attached below. Unless I'm missing something, it passes the number of
> > *bytes* on the stack in ECX, whereas the DPMI Spec says we need to
> > pass the number of 16-bit *words* (see the excerpt below).
>
> I suggest this should be documentation defect and the code stay the
> way it is, so working code does not get the stack size cut in half.
Won't that cause crashes and other trouble? The DPMI host will see
the value of ECX and copy that many words onto the RM stack. Are we
sure there will be enough stack space to push twice the amount of
data? The DPMI spec seems to ensure only 30 words of stack provided
by the DPMI host, and recommends to put non-zero values into the RM
SS:SP beyond that.
- Raw text -