delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/30/05:12:11

Date: Sun, 30 Jan 2000 10:41:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Stromberg <eplmst AT lu DOT erisoft DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: posix threads with djgpp
In-Reply-To: <86n766$aj$1@antares.lu.erisoft.se>
Message-ID: <Pine.SUN.3.91.1000130104055.17273h-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 ;-).

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019