diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-04-30 10:23:35 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-04-30 10:23:35 +0000 |
commit | 5241bd47ad25f8d8951d98ca27edd8204eeecc0a (patch) | |
tree | 9fb5140d9fbfe07c38bd06a602678c15abdee46c /sys/arch | |
parent | 08b120f58a141eb212abb23bb9a6ef21ef6f4a85 (diff) |
prevent messing with critical psl flags -- from netbsd
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/vax/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c index f75157006f2..d2e40783bdc 100644 --- a/sys/arch/vax/vax/machdep.c +++ b/sys/arch/vax/vax/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.22 2000/04/27 01:10:13 bjc Exp $ */ +/* $OpenBSD: machdep.c,v 1.23 2000/04/30 10:23:34 bjc Exp $ */ /* $NetBSD: machdep.c,v 1.96 2000/03/19 14:56:53 ragge Exp $ */ /* @@ -602,7 +602,8 @@ process_write_regs(p, regs) tf->fp = regs->fp; tf->sp = regs->sp; tf->pc = regs->pc; - tf->psl = regs->psl; + tf->psl = (regs->psl|PSL_U|PSL_PREVU) & + ~(PSL_MBZ|PSL_IS|PSL_IPL1F|PSL_CM); return 0; } |