summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-10-09 22:33:19 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-10-09 22:33:19 +0000
commit8c7d3697f8b701616488ca088a2149b25d2efced (patch)
tree9aca2c7d0aab94c010f2a263fec9392ef199dc25 /sys/arch
parentde84084cb5ead49d9e2fe0920ece849d21589134 (diff)
unbreak altivec support.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c
index c1592769f57..3a83b497c8e 100644
--- a/sys/arch/powerpc/powerpc/trap.c
+++ b/sys/arch/powerpc/powerpc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.70 2005/10/09 14:52:12 drahn Exp $ */
+/* $OpenBSD: trap.c,v 1.71 2005/10/09 22:33:18 drahn Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
@@ -673,7 +673,9 @@ for (i = 0; i < errnum; i++) {
/*
* If someone stole the vector unit while we were away, disable it
*/
- if (p != ppc_vecproc)
+ if (p == ppc_vecproc)
+ frame->srr1 |= PSL_VEC;
+ else
frame->srr1 &= ~PSL_VEC;
#endif /* ALTIVEC */
}