aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorRussell Currey <[email protected]>2019-03-27 03:35:54 +0000
committerMichael Ellerman <[email protected]>2019-04-20 12:02:12 +0000
commit56c46bba9bbfe229b4472a5be313c44c5b714a39 (patch)
tree2774a129f5696d9167a8500a1f1d25671f93b96b /arch/powerpc/lib/code-patching.c
parentpowerpc/embedded6xx: Remove unused functions holly_power_off and holly_halt (diff)
downloadkernel-56c46bba9bbfe229b4472a5be313c44c5b714a39.tar.gz
kernel-56c46bba9bbfe229b4472a5be313c44c5b714a39.zip
powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX
With STRICT_KERNEL_RWX enabled anything marked __init is placed at a 16M boundary. This is necessary so that it can be repurposed later with different permissions. However, in kernels with text larger than 16M, this pushes early_setup past 32M, incapable of being reached by the branch instruction. Fix this by setting the CTR and branching there instead. Fixes: 1e0fc9d1eb2b ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs") Signed-off-by: Russell Currey <[email protected]> [mpe: Fix it to work on BE by using DOTSYM()] Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions