diff options
-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 */ } |