Re: RE : PPC arch and spinlocks
From: Geoff Levand <hidden>
Date: 2005-06-09 15:20:08
� wrote:
First of all,tks Jeff for this link.
So reading that, I understood that I need to enable the SMP support in
the makemenuconfig
in order to use spinlocks even if I'm working on UP platform.
That's what I did but I now go through compile errors (I'm using a
montavista PE 3.1):
In file included from
/myWorks/en-cours/linux-2.4.20_mvl31/include/linux/smp.h:14,
from ppc4xx_setup.c:34:
/myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:28: error:
`NR_CPUS' undeclared here (not in a function)
/myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:30: error:
`NR_CPUS' undeclared here (not in a function)
/myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:31: error:
`NR_CPUS' undeclared here (not in a function)
/myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:31: embrouill�
par les erreurs pr�c�dentes, abandon
make[1]: *** [ppc4xx_setup.o] Erreur 1
make[1]: Quitte le r�pertoire
`/myWorks/en-cours/linux-2.4.20_mvl31/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Erreur 2ppc4xx core doesn't support SMP.