Mail Archives: djgpp/2000/01/30/08:41:55
Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
: On 26 Jan 2000, Martin Stromberg wrote:
: > What would happen in the DOZE calls if the signal
: > machinery invalidated CS instead of DS?
: An instant crash ;-).
I realize that the DJGPP code (as it is today) would crash rather
quickly.
: You cannot invalidate CS because then the code of the
: interrupt/exception handler cannot run. CS is the only segment
: register which is guaranteed to be loaded with a correct selector when
: the handler is called, precisely for this reason.
But I wondered what would happen if the processor was in some DOZE
call, an interrupt comes along (I'm assuming that DOZE can be
interrupted) which some code (not necessarily DJGPP code) handles by
invalidating the CS selector and then returns to the DOZE call. What
would happen now (in the DOZE call)?
Right,
MartinS
- Raw text -