MIPS: Relocatable: Provide plat_post_relocation hook
authorSteven J. Hill <Steven.Hill@cavium.com>
Fri, 9 Dec 2016 08:36:22 +0000 (02:36 -0600)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:36 +0000 (16:34 +0100)
commit8cc709d7d4f013f51d38ceb2e3c8c82d230cf457
tree399021521ac8980327d6e9447a28e40b152d9ce4
parent3ff72be4c9ce269c5b7adff9b0f912a2df3cb987
MIPS: Relocatable: Provide plat_post_relocation hook

This hook provides the platform the chance to perform any required
setup before the boot processor switches to the relocated kernel.
The relocated kernel has been copied and fixed up ready for execution
at this point. Secondary CPUs may wish to switch to it early. There
is also the opportunity for the platform to abort jumping to the
relocated kernel if there is anything wrong with the chosen offset.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14651/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/relocate.c