From owner-freebsd-current Thu Aug 27 02:52:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA16438 for freebsd-current-outgoing; Thu, 27 Aug 1998 02:52:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA16430 for ; Thu, 27 Aug 1998 02:52:23 -0700 (PDT) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.8/8.7.3) id LAA25044; Thu, 27 Aug 1998 11:23:18 +0200 (CEST) Message-ID: <19980827112317.A25012@cons.org> Date: Thu, 27 Aug 1998 11:23:17 +0200 From: Martin Cracauer To: Bruce Evans , cracauer@cons.org, current@FreeBSD.ORG, luoqi@watermarkgroup.com, shocking@prth.pgs.com Subject: Re: Floating Point Exceptions, signal handlers & subsequent ops References: <199808270253.MAA15661@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <199808270253.MAA15661@godzilla.zeta.org.au>; from Bruce Evans on Thu, Aug 27, 1998 at 12:53:36PM +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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