Module Name: src
Committed By: matt
Date: Mon Jul 6 05:03:56 UTC 2015
Modified Files:
src/sys/arch/powerpc/powerpc: vm_machdep.c
Log Message:
Clear PSL_FP/PSL_VEC so the lwp won't think it owns them.
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/powerpc/powerpc/vm_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/powerpc/vm_machdep.c
diff -u src/sys/arch/powerpc/powerpc/vm_machdep.c:1.98 src/sys/arch/powerpc/powerpc/vm_machdep.c:1.99
--- src/sys/arch/powerpc/powerpc/vm_machdep.c:1.98 Sat Oct 20 14:42:15 2012
+++ src/sys/arch/powerpc/powerpc/vm_machdep.c Mon Jul 6 05:03:56 2015
@@ -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 @@ cpu_lwp_fork(struct lwp *l1, struct lwp
* 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