Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha gross hack for SIGFPE under OSF/1, unti...



details:   https://anonhg.NetBSD.org/src/rev/fa4662605965
branches:  trunk
changeset: 472471:fa4662605965
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 30 05:47:53 1999 +0000

description:
gross hack for SIGFPE under OSF/1, until ross makes SW completion go

diffstat:

 sys/arch/alpha/alpha/trap.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r a5ee5449bd74 -r fa4662605965 sys/arch/alpha/alpha/trap.c
--- a/sys/arch/alpha/alpha/trap.c       Fri Apr 30 05:29:20 1999 +0000
+++ b/sys/arch/alpha/alpha/trap.c       Fri Apr 30 05:47:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.45 1999/04/23 05:43:02 cgd Exp $ */
+/* $NetBSD: trap.c,v 1.46 1999/04/30 05:47:53 cgd Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.45 1999/04/23 05:43:02 cgd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.46 1999/04/30 05:47:53 cgd Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -274,6 +274,13 @@
                 * user has requested that.
                 */
                if (user) {
+#ifdef COMPAT_OSF1
+                       extern struct emul emul_osf1;
+
+                       /* just punt on OSF/1.  XXX THIS IS EVIL */
+                       if (p->p_emul == &emul_osf1) 
+                               goto out;
+#endif
                        i = SIGFPE;
                        ucode =  a0;            /* exception summary */
                        break;



Home | Main Index | Thread Index | Old Index