From owner-cvs-all Fri Nov 12 8:32:34 1999 Delivered-To: cvs-all@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 5619714F27; Fri, 12 Nov 1999 08:32:19 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id JAA09817; Fri, 12 Nov 1999 09:32:18 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA19116; Fri, 12 Nov 1999 09:32:16 -0700 Date: Fri, 12 Nov 1999 09:32:16 -0700 Message-Id: <199911121632.JAA19116@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Bruce Evans Cc: Nate Williams , Marcel Moolenaar , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/include signal.h In-Reply-To: References: <199911121549.IAA18836@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > However, there are issues with sigset/longjmp with FPU state still, > > although they might not be effected as I haven't looked at the > > implementation yet. > > Our setjmp/longjmp already preserve too much FPU state C9x draft > compatibility. From the comments in the JDK source I added. + } else { \ + /* \ + * FreeBSD's siglongjmp resets the FPU with 'fninit', \ + * so restore it. \ + */ \ + __asm__ ("frstor %0"::"m" (*fdata)); \ By reseting the FPU with fninit, we *lose* much of the state, we in our code we must restore the state (which we stored before the call to sigsetjmp with fsave/fwait). Or, am I not understanding something critical here... Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message