powerpc/kexec: Reset secondary cpu endianness before kexec
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Wed, 22 Jul 2015 05:50:50 +0000 (15:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Aug 2015 08:19:08 +0000 (18:19 +1000)
commitffebf5f391dfa9da3e086abad3eef7d3e5300249
tree2a539dab5f43d90b47f1f1ab03e4fc0869f6c6a9
parent480798044eb268a31f6b84bc3b7f99b9989e463d
powerpc/kexec: Reset secondary cpu endianness before kexec

If the target kernel does not inlcude the FIXUP_ENDIAN check, coming
from a different-endian kernel will cause the target kernel to panic.
All ppc64 kernels can handle starting in big-endian mode, so return to
big-endian before branching into the target kernel.

This mainly affects pseries as secondaries on powernv are returned to
OPAL.

Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/misc_64.S
This page took 0.026474 seconds and 5 git commands to generate.