summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/head.S
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-05-15 14:46:46 +0100
committerWill Deacon <will@kernel.org>2020-05-18 17:47:37 +0100
commit711e8b0de0d63c70c825b473da01288b661a2386 (patch)
treed1fb5526919228e698d7687d73ab0017931910d7 /arch/arm64/kernel/head.S
parentbee348fab099b0f551caa874663e82a7f3bb64b3 (diff)
downloadlinux-711e8b0de0d63c70c825b473da01288b661a2386.tar.bz2
arm64: scs: Use 'scs_sp' register alias for x18
x18 holds the SCS stack pointer value, so introduce a register alias to make this easier to read in assembly code. Tested-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r--arch/arm64/kernel/head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 2b01c19c5483..1293baddfd20 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -426,7 +426,7 @@ SYM_FUNC_START_LOCAL(__primary_switched)
mov x29, sp
#ifdef CONFIG_SHADOW_CALL_STACK
- adr_l x18, init_shadow_call_stack // Set shadow call stack
+ adr_l scs_sp, init_shadow_call_stack // Set shadow call stack
#endif
str_l x21, __fdt_pointer, x5 // Save FDT pointer