]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd639dd7cfd89ba75c0571698096386b2e2317731
tree399021521ac8980327d6e9447a28e40b152d9ce4
parent361ce12a6f3e10e4d93381750b93e74e184b5dde
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