do not let PSL_NT be set in VM86 mode; netbsd
authorderaadt <deraadt@openbsd.org>
Mon, 31 Mar 1997 17:28:07 +0000 (17:28 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 31 Mar 1997 17:28:07 +0000 (17:28 +0000)
sys/arch/i386/include/psl.h

index ed357a9..4d54be5 100644 (file)
@@ -67,9 +67,9 @@
 
 #define        PSL_USERSET     (PSL_MBO | PSL_I)
 #ifdef VM86
-#define        PSL_USERSTATIC  (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_VIF | PSL_VIP)
+#define        PSL_USERSTATIC  (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_NT | PSL_VIF | PSL_VIP)
 #else
-#define        PSL_USERSTATIC  (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_VM | PSL_VIF | PSL_VIP)
+#define        PSL_USERSTATIC  (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_NT | PSL_VM | PSL_VIF | PSL_VIP)
 #endif
 
 #ifdef _KERNEL