PPC arch and spinlocks

Garcia Jérémie GARCIAJ at 3il.fr
Thu Jun 9 19:28:05 EST 2005


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 2

Is it a known problem for the montavista ppc users??

-------- Message d'origine--------
De: Jeff Angielski [mailto:jeff at theptrgroup.com]
Date: mer. 08/06/2005 17:26
À: Garcia Jérémie
Cc: linuxppc-dev at ozlabs.org
Objet : Re: PPC arch and spinlocks
 
On Wed, 2005-06-08 at 16:29 +0200, Garcia Jérémie wrote:
> Hi everybody, I need your help one more time.
> I'm new to kernel device driver (linux newbie) and I'd like to control concurrent access
> to our hardware resources. (I'm working on a ppc405EP platform uniprocessor)

You might find this guide useful:

http://www.kernelnewbies.org/documents/kdoc/kernel-locking/lklockingguide.html



Jeff Angielski
The PTR Group





More information about the Linuxppc-dev mailing list