mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
FROMLIST: 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. Bug: 145210207 Change-Id: Iad10392005b66e6bf3a0f00c40024448e9798b89 (am from https://lore.kernel.org/patchwork/patch/1149053/) Link: https://patchwork.kernel.org/patch/9836877/ Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Kees Cook <keescook@chromium.org> [Sami: updated commit message] Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
947573898b
commit
1e55c6fbd3
|
|
@ -42,11 +42,11 @@ ENTRY(__cpu_soft_restart)
|
|||
mov x0, #HVC_SOFT_RESTART
|
||||
hvc #0 // no return
|
||||
|
||||
1: mov x18, x1 // entry
|
||||
1: mov x8, x1 // entry
|
||||
mov x0, x2 // arg0
|
||||
mov x1, x3 // arg1
|
||||
mov x2, x4 // arg2
|
||||
br x18
|
||||
br x8
|
||||
ENDPROC(__cpu_soft_restart)
|
||||
|
||||
.popsection
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user