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 Clear PSL_FP/PSL_VEC so the lwp won...



details:   https://anonhg.NetBSD.org/src/rev/cf272be5e869
branches:  trunk
changeset: 339222:cf272be5e869
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 06 05:03:56 2015 +0000

description:
Clear PSL_FP/PSL_VEC so the lwp won't think it owns them.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 48ae3cfc101a -r cf272be5e869 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Mon Jul 06 02:43:26 2015 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Mon Jul 06 05:03:56 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.98 2012/10/20 14:42:15 kiyohara Exp $ */
+/*     $NetBSD: vm_machdep.c,v 1.99 2015/07/06 05:03:56 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.98 2012/10/20 14:42:15 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.99 2015/07/06 05:03:56 matt Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -107,6 +107,8 @@
         * Setup the trap frame for the new process
         */
        *l2->l_md.md_utf = *l1->l_md.md_utf;
+       l2->l_md.md_utf->tf_srr1 &= ~(PSL_FP|PSL_VEC);
+       l2->l_md.md_flags &= ~PSL_VEC;
 
        /*
         * If specified, give the child a different stack.  Make sure to



Home | Main Index | Thread Index | Old Index