Mail Archives: djgpp/1996/12/01/20:27:34
> How about having a spare CS selector created. To raise a signal, set
> the limit of it to the return EIP plus a couple of bytes, then execute
> a far return, reloading the new CS?
No, no, no. In a hardware interrupt you have no information about the state
of the DJGPP program or any way to change it. So you don't know the EIP (if
you did, you could use lots of tricks to transfer control) and making
the app CS illegal will puke the DPMI. You have to be very careful messing
with the app DS also - which is why the DS alias exists.
Go read the DPMI specs, and then go try to program anything new idea - I think
you'll find messing with SS or DS is about the best that can be done
without violating the DPMI specs and causing yourself problems.
- Raw text -