Mail Archives: djgpp-workers/1999/06/03/11:53:53
> The problem is that the code does copy the values to the PM stack as
> bytes (it uses "REP MOVSB"), but then it sticks the same number of bytes
> into ECX, where the DPMI function expects the number of words. This will
> cause some of the RM stack to use twice as large space, and to have garbage
> in some of it.
Okay, I misunderstood - so it needs to be a rep movsw instead. It seems
obvious that noone is using this function at this point...
> So to fix this, we need to right-shift the argument before putting it in
> ECX. Then the docs could be left alone. Alternatively, we could change
> the docs to say "words" and change the code to use MOVSW instead of MOVSB
> when copying to the PM stack.
I would prefer the later, so the wrapper function is similar to the DPMI spec.
- Raw text -