]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit4c9e7e649a3f291e1b939299458e6844c16afe70
tree446f0a65db719795d0c0eb5c6a5757fb73151e34
parentf3b70e50942960ecc691367bb937e35cdc5e28d3
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