Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include Be a lot more explicit about the MS...



details:   https://anonhg.NetBSD.org/src/rev/9fb009609a03
branches:  trunk
changeset: 565322:9fb009609a03
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Apr 04 16:49:12 2004 +0000

description:
Be a lot more explicit about the MSR bits a user process can change.

diffstat:

 sys/arch/powerpc/include/psl.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 609c7b13b2dd -r 9fb009609a03 sys/arch/powerpc/include/psl.h
--- a/sys/arch/powerpc/include/psl.h    Sun Apr 04 16:47:02 2004 +0000
+++ b/sys/arch/powerpc/include/psl.h    Sun Apr 04 16:49:12 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psl.h,v 1.8 2003/07/31 01:25:38 matt Exp $     */
+/*     $NetBSD: psl.h,v 1.9 2004/04/04 16:49:12 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -80,6 +80,9 @@
 
 #define        PSL_USERSET     (PSL_EE | PSL_PR | PSL_ME | PSL_IR | PSL_DR | PSL_RI)
 
-#define        PSL_USERSTATIC  (PSL_USERSET | PSL_IP | 0x87c0008c)
+/*
+ * A user is not allowed to change any MSR bits except the following:
+ */
+#define        PSL_USERSTATIC  (~(PSL_VEC|PSL_FP|PSL_FE0|PSL_FE1|PSL_LE|PSL_SE|PSL_BE))
 
 #endif /* _POWERPC_PSL_H_ */



Home | Main Index | Thread Index | Old Index