Russell Currey 56c46bba9b 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 <ruscur@russell.cc>
[mpe: Fix it to work on BE by using DOTSYM()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-04-20 22:02:12 +10:00
..
2019-03-07 12:56:26 -08:00
2018-07-30 22:47:53 +10:00
2018-08-13 15:59:06 +10:00
2019-01-01 15:55:29 -08:00
2019-02-23 22:31:40 +11:00
2019-02-23 21:04:32 +11:00
2017-12-11 13:03:35 +11:00
2019-03-07 12:56:26 -08:00
2019-02-23 22:31:40 +11:00
2018-06-07 10:23:33 -07:00
2019-03-12 10:04:01 -07:00
2019-03-07 12:56:26 -08:00
2019-03-02 14:43:05 +11:00
2018-10-09 16:51:05 +11:00
2019-03-05 21:07:18 -08:00
2018-05-25 12:04:46 +10:00