Mail Archives: djgpp/1998/04/13/02:24:57
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 -