I'm differentiating based on __powerpc64__ but that should probably be based on PVR instead? If so, then how?
I think you want to keep it compile-time; the differences between 64-bit and 32-bit are huge. __powerpc64__ will do fine I think, but maybe you want some CONFIG_* define. Dunno.
Segher