Thu Sep 18 21:09:18 2008 UTC ()
Remove PSL_MBO (the bits that Must Be One) from PSL_USER - which are the
bits that the 'user' can change.
Who knows what the effect of a user signal handler (which I think might have
access to the bits) changing these bits might be!


(dsl)
diff -r1.5 -r1.6 src/sys/arch/x86/include/psl.h

cvs diff -r1.5 -r1.6 src/sys/arch/x86/include/psl.h (expand / switch to context diff)
--- src/sys/arch/x86/include/psl.h 2008/09/18 15:57:04 1.5
+++ src/sys/arch/x86/include/psl.h 2008/09/18 21:09:18 1.6
@@ -1,4 +1,4 @@
-/*	$NetBSD: psl.h,v 1.5 2008/09/18 15:57:04 christos Exp $	*/
+/*	$NetBSD: psl.h,v 1.6 2008/09/18 21:09:18 dsl Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -70,7 +70,7 @@
 #else
 #define	PSL_USERSTATIC	(PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | PSL_NT | PSL_VM | PSL_VIF | PSL_VIP)
 #endif
-#define PSL_USER	(PSL_C | PSL_MBO | PSL_PF | PSL_AF | PSL_Z | PSL_N | \
+#define PSL_USER	(PSL_C | PSL_PF | PSL_AF | PSL_Z | PSL_N | \
     PSL_T | PSL_V | PSL_D)
 #define	PSL_CLEARSIG	(PSL_T | PSL_VM | PSL_AC | PSL_D)