Use __builtin_frame_address(0) to calculate the memory layout for power. This works for both PPC64 endian-ness modes, so also eliminates the need for the BIG_ENDIAN/LITTLE_ENDIAN checks.
By trial and error, it also looks like the kPPC64_ShadowOffset64 value is (1ULL << 41) for both BE and LE, so that #if/#elif/#endif block has also been simplified.