fix to use only one soft intr for net thereby fixing bug in raw sockets
[unix-history] / usr / src / sys / vax / include / psl.h
index f5fd046..845799b 100644 (file)
@@ -1,21 +1,27 @@
-/*     psl.h   3.1     %H%     */
+/*     psl.h   4.4     81/04/22        */
 
 /*
  * VAX program status longword
  */
 
 
 /*
  * VAX program status longword
  */
 
-#define        PSL_C           0x1             /* carry bit */
-#define        PSL_V           0x2             /* overflow bit */
-#define        PSL_Z           0x4             /* zero bit */
-#define        PSL_N           0x8             /* negative bit */
-#define        PSL_T           0x10            /* trace enable bit */
-#define        PSL_IV          0x20            /* integer overflow enable bit */
-#define        PSL_FU          0x40            /* floating point underflow enable */
-#define        PSL_DV          0x80            /* decimal overflow enable bit */
-#define        PSL_IPL         0x1f0000        /* interrupt priority level */
-#define        PSL_PRVMOD      0xc00000        /* previous mode */
-#define        PSL_CURMOD      0x3000000       /* current mode */
-#define        PSL_IS          0x4000000       /* interrupt stack */
-#define        PSL_FPD         0x8000000       /* first part done */
+#define        PSL_C           0x00000001      /* carry bit */
+#define        PSL_V           0x00000002      /* overflow bit */
+#define        PSL_Z           0x00000004      /* zero bit */
+#define        PSL_N           0x00000008      /* negative bit */
+#define        PSL_ALLCC       0x0000000f      /* all cc bits - unlikely */
+#define        PSL_T           0x00000010      /* trace enable bit */
+#define        PSL_IV          0x00000020      /* integer overflow enable bit */
+#define        PSL_FU          0x00000040      /* floating point underflow enable */
+#define        PSL_DV          0x00000080      /* decimal overflow enable bit */
+#define        PSL_IPL         0x001f0000      /* interrupt priority level */
+#define        PSL_PRVMOD      0x00c00000      /* previous mode (all on is user) */
+#define        PSL_CURMOD      0x03000000      /* current mode (all on is user) */
+#define        PSL_IS          0x04000000      /* interrupt stack */
+#define        PSL_FPD         0x08000000      /* first part done */
 #define        PSL_TP          0x40000000      /* trace pending */
 #define        PSL_CM          0x80000000      /* compatibility mode */
 #define        PSL_TP          0x40000000      /* trace pending */
 #define        PSL_CM          0x80000000      /* compatibility mode */
+
+#define        PSL_MBZ         0x3020ff00      /* must be zero bits */
+
+#define        PSL_USERSET     (PSL_PRVMOD|PSL_CURMOD)
+#define        PSL_USERCLR     (PSL_IS|PSL_IPL|PSL_MBZ)