Index: configure/os/CONFIG.Common.vxWorks-ppc604_altivec =================================================================== diff -u -b -r1.1.2.2 -r1.1.2.3 --- configure/os/CONFIG.Common.vxWorks-ppc604_altivec 20 Dec 2006 23:28:12 -0000 1.1.2.2 +++ configure/os/CONFIG.Common.vxWorks-ppc604_altivec 16 Apr 2007 19:41:07 -0000 1.1.2.3 @@ -13,10 +13,10 @@ # Tell compiler to include altivec support; not available in 5.4 ALTIVEC_CFLAG_5.4 = THIS_VERSION_OF_VXWORKS DOES_NOT_SUPPORT_ALTIVEC -ALTIVEC_CFLAG_5.5 = -fvec -ALTIVEC_CFLAG_6.0 = -fvec +ALTIVEC_CFLAG_5.5 = -fvec -DALTIVEC +ALTIVEC_CFLAG_6.0 = -fvec -DALTIVEC # From 6.1 onwards the compiler option changed -ALTIVEC_CFLAG = -maltivec +ALTIVEC_CFLAG = -maltivec -DALTIVEC ARCH_DEP_CFLAGS += $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),$(ALTIVEC_CFLAG)) Index: src/libCom/osi/os/vxWorks/osdThread.c =================================================================== diff -u -b -r1.35.2.12 -r1.35.2.13 --- src/libCom/osi/os/vxWorks/osdThread.c 9 Feb 2007 21:08:44 -0000 1.35.2.12 +++ src/libCom/osi/os/vxWorks/osdThread.c 16 Apr 2007 19:44:22 -0000 1.35.2.13 @@ -136,6 +136,11 @@ taskVarDelete(tid,(int *)&papTSD); } +#ifdef ALTIVEC + #define TASK_FLAGS (VX_FP_TASK | VX_ALTIVEC_TASK) +#else + #define TASK_FLAGS (VX_FP_TASK) +#endif epicsThreadId epicsThreadCreate(const char *name, unsigned int priority, unsigned int stackSize, EPICSTHREADFUNC funptr,void *parm) @@ -147,7 +152,7 @@ return(0); } tid = taskSpawn((char *)name,getOssPriorityValue(priority), - VX_FP_TASK, stackSize, + TASK_FLAGS, stackSize, (FUNCPTR)createFunction,(int)funptr,(int)parm, 0,0,0,0,0,0,0,0); if(tid==ERROR) {