Skip to content
Commit ffebf5f3 authored by Samuel Mendoza-Jonas's avatar Samuel Mendoza-Jonas Committed by Michael Ellerman
Browse files

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: default avatarSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 48079804
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment