delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/13/02:24:57

Date: Mon, 13 Apr 1998 09:24:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Luke Bishop <lbishop AT calvin DOT stemnet DOT nf DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Quick Question: Does CS=DS=SS?
In-Reply-To: <01bd65b6$07134ac0$6848a5c6@technoid>
Message-ID: <Pine.SUN.3.91.980413092418.5997K-100000@is>
MIME-Version: 1.0

On 13 Apr 1998, Luke Bishop wrote:

> I was just wondering if DJGPP always made CS=DS?

One situation where this is tricky is when a signal is pending, like
when you press Ctrl-C or Ctrl-BREAK, or when alarm timer fires.  The
DJGPP signal-handling mechanism works by invalidating the DS selector
and catching the exception generated when the program touches any of
its data.

So programs which rely on DS being valid need to use the alternate
selector called `__djgpp_ds_alias', which is *always* valid.

- Raw text -


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