Apply by doing: cd /usr/src patch -p0 < 006_altivec.patch Then build and install a new kernel. Index: sys/arch/powerpc/include/trap.h =================================================================== RCS file: /cvs/src/sys/arch/powerpc/include/trap.h,v retrieving revision 1.6 retrieving revision 1.6.16.1 diff -u -r1.6 -r1.6.16.1 --- sys/arch/powerpc/include/trap.h 26 Apr 2003 08:01:42 -0000 1.6 +++ sys/arch/powerpc/include/trap.h 28 Apr 2007 01:12:10 -0000 1.6.16.1 @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.h,v 1.6 2003/04/26 08:01:42 jmc Exp $ */ +/* $OpenBSD: trap.h,v 1.6.16.1 2007/04/28 01:12:10 ckuethe Exp $ */ /* $NetBSD: trap.h,v 1.1 1996/09/30 16:34:35 ws Exp $ */ /* @@ -51,6 +51,7 @@ #define EXC_VEC 0x0f20 /* AltiVec Unavailable */ #define EXC_BPT 0x1300 /* Instruction Breakpoint */ #define EXC_SMI 0x1400 /* System Management Interrupt */ +#define EXC_VECAST 0x1600 /* AltiVec Assist */ /* And these are only on the 603: */ #define EXC_IMISS 0x1000 /* Instruction translation miss */ Index: sys/arch/powerpc/powerpc/trap.c =================================================================== RCS file: /cvs/src/sys/arch/powerpc/powerpc/trap.c,v retrieving revision 1.73 retrieving revision 1.73.2.1 diff -u -r1.73 -r1.73.2.1 --- sys/arch/powerpc/powerpc/trap.c 24 Dec 2006 20:29:19 -0000 1.73 +++ sys/arch/powerpc/powerpc/trap.c 28 Apr 2007 01:12:10 -0000 1.73.2.1 @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.73 2006/12/24 20:29:19 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.73.2.1 2007/04/28 01:12:10 ckuethe Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -639,6 +639,12 @@ trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); break; #endif + + case EXC_VECAST|EXC_USER: + KERNEL_PROC_LOCK(p); + trapsignal(p, SIGFPE, 0, FPE_FLTRES, sv); + KERNEL_PROC_UNLOCK(p); + break; case EXC_AST|EXC_USER: uvmexp.softs++;