Question about PPC_NATIVE/hash_native_64.c
Hi,
I'm a little bit confused about the hash_native_64.c file, which is compiled in the kernel, if PPC_NATIVE is defined. PPC_NATIVE seems to be defined also for 32bit platforms (CHRP, PREP, etc.), but the name of the hash_native_64.c file and the Makefile suggest that it is for 64bit platforms only. What is hash_native_64.c actually good for on 32bit platforms and which cpus can make use of it?
Thanks!
regards,
Gerhard
Signature · 2 lines
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
Quoted 6 lines · Gerhard Pircher
I'm a little bit confused about the
hash_native_64.cfile, which is compiled in the kernel, ifPPC_NATIVEis defined.PPC_NATIVEseems to be defined also for 32bit platforms (CHRP, PREP, etc.), but the name of thehash_native_64.cfile and theMakefilesuggest that it is for 64bit platforms only. What ishash_native_64.cactually good for on 32bit platforms and which cpus can make use of it?
It's not included on 32-bit platforms. Here are the relevant lines from arch/powerpc/mm/Makefile:
hash-$(CONFIG_PPC_NATIVE) := hash_native_64.o
obj-$(CONFIG_PPC64) += hash_utils_64.o \ slb_low.o slb.o stab.o mmap.o $(hash-y)
Note that the first line sets hash-y not obj-y, and $(hash-y) is only used on 64-bit machines.
Paul.