Skip to contentSkip to conversation

Question about PPC_NATIVE/hash_native_64.c

DISCUSSION Gerhard Pircher 2 participants 2 messages Feb 20, 2008 – Feb 21, 2008

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 6 lines · Gerhard Pircher

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?

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.