powerpc: Fix little endian lppaca, slb_shadow and dtl_entry
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:46 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:35 +0000 (15:33 +1000)
commit7ffcf8ec26f4b94b95b1297131d223b121d951e5
tree7b4b47eaeafe56c253350b14470fecf03b40277f
parentc72cd555e828b710bce8c3635254dbb483397142
powerpc: Fix little endian lppaca, slb_shadow and dtl_entry

The lppaca, slb_shadow and dtl_entry hypervisor structures are
big endian, so we have to byte swap them in little endian builds.

LE KVM hosts will also need to be fixed but for now add an #error
to remind us.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
15 files changed:
arch/powerpc/include/asm/asm-compat.h
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/time.c
arch/powerpc/kvm/book3s_64_slb.S
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/lib/locks.c
arch/powerpc/mm/fault.c
arch/powerpc/mm/slb.c
arch/powerpc/platforms/pseries/dtl.c
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/processor_idle.c
arch/powerpc/platforms/pseries/setup.c