From owner-cvs-all Sun Jul 25 6:17:42 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E6DE114EE7; Sun, 25 Jul 1999 06:17:40 -0700 (PDT) (envelope-from cracauer@FreeBSD.org) Received: (from cracauer@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA20660; Sun, 25 Jul 1999 06:16:10 -0700 (PDT) (envelope-from cracauer@FreeBSD.org) Message-Id: <199907251316.GAA20660@freefall.freebsd.org> From: Martin Cracauer Date: Sun, 25 Jul 1999 06:16:10 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/conf LINT src/sys/i386/i386 trap.c userconfig.c src/sys/i386/include ieeefp.h trap.h src/sys/i386/isa npx.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk cracauer 1999/07/25 06:16:09 PDT Modified files: sys/i386/conf LINT sys/i386/i386 trap.c userconfig.c sys/i386/include ieeefp.h trap.h sys/i386/isa npx.c Log: On FPU exceptions, pass a useful error code (one of the FPE_... macros) to the signal handler, for old-style BSD signal handlers as the second (int) argument, for SA_SIGINFO signal handlers as siginfo_t->si_code. This is source-compatible with Solaris, except that we have no (which isn't even mentioned in POSIX 1003.1b). An rather complete example program is at http://www3.cons.org/cracauer/freebsd-signal.c This will be added to the regression tests in src/. This commit also adds code to disable the (hardware) FPU from userconfig, so that you can use a software FP emulator on a machine that has hardware floating point. See LINT. Revision Changes Path 1.619 +14 -8 src/sys/i386/conf/LINT 1.140 +4 -4 src/sys/i386/i386/trap.c 1.150 +3 -3 src/sys/i386/i386/userconfig.c 1.6 +2 -1 src/sys/i386/include/ieeefp.h 1.8 +19 -3 src/sys/i386/include/trap.h 1.74 +202 -24 src/sys/i386/isa/npx.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message