diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-09 22:33:19 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-09 22:33:19 +0000 |
commit | 8c7d3697f8b701616488ca088a2149b25d2efced (patch) | |
tree | 9aca2c7d0aab94c010f2a263fec9392ef199dc25 /sys/arch | |
parent | de84084cb5ead49d9e2fe0920ece849d21589134 (diff) |
unbreak altivec support.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/powerpc/trap.c | 6 |
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 */ } |