Hi Philippe!
On my G3/iBook with altivec disabled in kernel, I cannot load the
rtai_hal module, due to an unresolved kernel symbol:
'rtai_nucleus: Unknown symbol last_task_used_altivec'
I fixed it with the attached patch.
goodnight - marc
--
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh
Index: include/nucleus/asm-ppc/system.h
===================================================================
RCS file: /cvs/rtai/fusion/include/nucleus/asm-ppc/system.h,v
retrieving revision 1.9
diff -u -p -r1.9 system.h
--- include/nucleus/asm-ppc/system.h 26 Aug 2004 22:10:46 -0000 1.9
+++ include/nucleus/asm-ppc/system.h 29 Aug 2004 01:25:33 -0000
@@ -417,8 +417,10 @@ static inline void xnarch_switch_to (xna
#endif /* CONFIG_SPE */
#endif /* CONFIG_SMP */
+#ifdef CONFIG_ALTIVEC
if (inproc->thread.regs && last_task_used_altivec == inproc)
inproc->thread.regs->msr |= MSR_VEC;
+#endif /* CONFIG_ALTIVEC */
#ifdef CONFIG_SPE
if (inproc->thread.regs && last_task_used_spe == inproc)