handle floating point/ ill instr with u.u_code
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 5 Mar 1981 17:29:59 +0000 (09:29 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 5 Mar 1981 17:29:59 +0000 (09:29 -0800)
SCCS-vsn: sys/vax/vax/trap.c 4.6

usr/src/sys/vax/vax/trap.c

index 65a929f..758f2af 100644 (file)
@@ -1,4 +1,4 @@
-/*     trap.c  4.5     %G%     */
+/*     trap.c  4.6     %G%     */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -47,6 +47,7 @@ unsigned code;
        case PRIVINFLT + USER:  /* privileged instruction fault */
        case RESADFLT + USER:   /* reserved addressing fault */
        case RESOPFLT + USER:   /* resereved operand fault */
        case PRIVINFLT + USER:  /* privileged instruction fault */
        case RESADFLT + USER:   /* reserved addressing fault */
        case RESOPFLT + USER:   /* resereved operand fault */
+               u.u_code = type &~ USER;
                i = SIGILL;
                break;
 
                i = SIGILL;
                break;