Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc In mtmsr emulation ignore PSL_VEC w...
details: https://anonhg.NetBSD.org/src/rev/b0bac0d74862
branches: trunk
changeset: 362563:b0bac0d74862
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Jun 15 22:07:14 2018 +0000
description:
In mtmsr emulation ignore PSL_VEC we set in mfmsr emulation just
above, as it freaks out PSL_USEROK_P(). This is also congruent with
how we handle PSL_FP.
PR port-macppc/53360
diffstat:
sys/arch/powerpc/powerpc/trap.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 50e42abbf25d -r b0bac0d74862 sys/arch/powerpc/powerpc/trap.c
--- a/sys/arch/powerpc/powerpc/trap.c Fri Jun 15 21:59:17 2018 +0000
+++ b/sys/arch/powerpc/powerpc/trap.c Fri Jun 15 22:07:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.153 2017/03/16 16:13:20 chs Exp $ */
+/* $NetBSD: trap.c,v 1.154 2018/06/15 22:07:14 uwe Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.153 2017/03/16 16:13:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.154 2018/06/15 22:07:14 uwe Exp $");
#include "opt_altivec.h"
#include "opt_ddb.h"
@@ -1062,6 +1062,9 @@
* user code isn't allowed to change it.
*/
msr &= ~PSL_FP;
+#ifdef ALTIVEC
+ msr &= ~PSL_VEC;
+#endif
/*
* Don't let the user muck with bits he's not allowed to.
Home |
Main Index |
Thread Index |
Old Index