Mail Archives: djgpp-workers/2001/04/25/23:40:58
> > pmode int and pmode selector.
>
> Having thought about this, I must admit this worries me a bit. What
> will CWSDPMI do when the application issues a PM Int 21h with the PSP
> selector in EBX?
Um... the wrong thing :-(
> According to what I see in CWSDPMI's sources, it
> simply chains to the real-mode handler of Int 21h, i.e. to DOS. But
> DOS doesn't know what to do with a PM selector of our PSP, so it might
> become confused, with potentially disastrous consequences (file
> operations will begin to fail, memory allocations might not work,
> function 4Ch could hang, etc.).
Yes, this would be bad.
> So could we please talk about this some more? Why do we need to issue
> a PM interrupt, and why do we need to use the PM selector of our PSP?
> Isn't __dpmi_int with the real-mode PSP segment good enough?
I'm guessing it needs to be the PM selector on the basis of the
previous discussions. A test would be required. We could also just do
the setting if the DOS/Windows version made sense :-P
- Raw text -