summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-07-28 17:50:12 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-07-28 17:50:12 +0000
commit7e8a9570f2ebf2d88294e820781b98e4887095a4 (patch)
tree857a7c56705d3807648b999a61bf2b313cbfe6ff /sys/arch/m88k/include
parent93587adc12a718d88c986b64fc45625895675d7e (diff)
In process_write_regs() and sigreturn(), be more strict about the bits
userland is allowed to change in psr.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/psl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/psl.h b/sys/arch/m88k/include/psl.h
index a1f74383693..a03dfa2ddd5 100644
--- a/sys/arch/m88k/include/psl.h
+++ b/sys/arch/m88k/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.5 2007/12/20 21:17:51 miod Exp $ */
+/* $OpenBSD: psl.h,v 1.6 2008/07/28 17:50:09 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -79,6 +79,10 @@
#define PSR_IND 0x00000002 /* interrupt disable */
#define PSR_SFRZ 0x00000001 /* shadow freeze */
+/* bits userland is not allowed to change */
+#define PSR_USERSTATIC (PSR_MODE | PSR_BO | PSR_SGN | PSR_SRM | PSR_SFD | \
+ PSR_MXM | PSR_IND | PSR_SFRZ)
+
#define FIP_V 0x00000002 /* valid */
#define FIP_E 0x00000001 /* exception */
#define FIP_ADDR 0xfffffffc /* address mask */