Module Name:    src
Committed By:   matt
Date:           Mon May  2 06:43:16 UTC 2011

Modified Files:
        src/sys/arch/powerpc/booke: spe.c
        src/sys/arch/powerpc/oea: altivec.c

Log Message:
Make sure to enable the vector unit in the PSL when returning to userland.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/booke/spe.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/oea/altivec.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/booke/spe.c
diff -u src/sys/arch/powerpc/booke/spe.c:1.3 src/sys/arch/powerpc/booke/spe.c:1.4
--- src/sys/arch/powerpc/booke/spe.c:1.3	Mon May  2 02:01:32 2011
+++ src/sys/arch/powerpc/booke/spe.c	Mon May  2 06:43:16 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: spe.c,v 1.3 2011/05/02 02:01:32 matt Exp $	*/
+/*	$NetBSD: spe.c,v 1.4 2011/05/02 06:43:16 matt Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.3 2011/05/02 02:01:32 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.4 2011/05/02 06:43:16 matt Exp $");
 
 #include "opt_altivec.h"
 
@@ -101,6 +101,7 @@
 	 * Note that vector has now been used.
 	 */
 	l->l_md.md_flags |= MDLWP_USEDVEC;
+	l->l_md.md_utf->tf_srr1 |= PSL_SPV;
 }
 
 void

Index: src/sys/arch/powerpc/oea/altivec.c
diff -u src/sys/arch/powerpc/oea/altivec.c:1.22 src/sys/arch/powerpc/oea/altivec.c:1.23
--- src/sys/arch/powerpc/oea/altivec.c:1.22	Mon May  2 02:01:33 2011
+++ src/sys/arch/powerpc/oea/altivec.c	Mon May  2 06:43:16 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: altivec.c,v 1.22 2011/05/02 02:01:33 matt Exp $	*/
+/*	$NetBSD: altivec.c,v 1.23 2011/05/02 06:43:16 matt Exp $	*/
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.22 2011/05/02 02:01:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.23 2011/05/02 06:43:16 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -105,6 +105,7 @@
 	 * Mark vector registers as modified.
 	 */
 	l->l_md.md_flags |= MDLWP_USEDVEC;
+	l->l_md.md_utf->tf_srr1 |= PSL_VEC;
 }
 
 void

Reply via email to