Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 11:23:17 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Bruce Evans <bde@zeta.org.au>, cracauer@cons.org, current@FreeBSD.ORG, luoqi@watermarkgroup.com, shocking@prth.pgs.com
Subject:   Re: Floating Point Exceptions, signal handlers & subsequent ops
Message-ID:  <19980827112317.A25012@cons.org>
In-Reply-To: <199808270253.MAA15661@godzilla.zeta.org.au>; from Bruce Evans on Thu, Aug 27, 1998 at 12:53:36PM %2B1000
References:  <199808270253.MAA15661@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In <199808270253.MAA15661@godzilla.zeta.org.au>, Bruce Evans wrote: 
> >Ah, now I got it.
> >
> >If sig == SIGFPE, then expect the trap code to be one of FPE_*_TRAP
> >values from machine/trap.h, *not* one of the T_* values.
> 
> Except this is not implemented.

It doesn't pass floating point conditions, but I receive
FPE_INTDIV_TRAP when I should. That makes the hardest case
distinguishable (int devision by zero -> restarted instruction after
signal handler exit).

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536
  Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980827112317.A25012>