Question about PPC_NATIVE/hash_native_64.c

Paul Mackerras paulus at samba.org
Thu Feb 21 15:47:58 EST 2008


Gerhard Pircher writes:

> 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.



More information about the Linuxppc-dev mailing list