arm64: kernel: avoid x18 in __cpu_soft_restart
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 6 Dec 2019 22:13:40 +0000 (14:13 -0800)
committerWill Deacon <will@kernel.org>
Thu, 16 Jan 2020 17:32:56 +0000 (17:32 +0000)
commit500d14affdf73677071c075bb9becc637b60fe39
tree26b9d981037c97047fd993e13dd3e0b2f8567d66
parentaf12376814a5d8d2fa1c86eaa3adacf9dee2102e
arm64: kernel: avoid x18 in __cpu_soft_restart

The code in __cpu_soft_restart() uses x18 as an arbitrary temp register,
which will shortly be disallowed. So use x8 instead.

Link: https://patchwork.kernel.org/patch/9836877/
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
[Sami: updated commit message]
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpu-reset.S