From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: posix threads with djgpp Date: 30 Jan 2000 12:09:59 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 27 Message-ID: <8719mn$mu5$2@antares.lu.erisoft.se> References: NNTP-Posting-Host: spica-144.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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