]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kexec_file: invoke the kernel without purgatory
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 15 Nov 2018 05:52:52 +0000 (14:52 +0900)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 14:38:53 +0000 (14:38 +0000)
commit0946a2b11279acd0e5bfb12d3ebbb0af0a27bdb5
tree446f0a65db719795d0c0eb5c6a5757fb73151e34
parenta14274298be1b15ec5bb573c965df54284fe0dc9
arm64: kexec_file: invoke the kernel without purgatory

On arm64, purgatory would do almost nothing. So just invoke secondary
kernel directly by jumping into its entry code.

While, in this case, cpu_soft_restart() must be called with dtb address
in the fifth argument, the behavior still stays compatible with kexec_load
case as long as the argument is null.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: James Morse <james.morse@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpu-reset.S
arch/arm64/kernel/machine_kexec.c
arch/arm64/kernel/relocate_kernel.S