summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/cpu-reset.S
diff options
context:
space:
mode:
authorRemi Denis-Courmont <remi.denis.courmont@huawei.com>2020-03-04 12:36:31 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2020-03-24 14:48:24 +0300
commitdc374b477f9233296bf2da31854e486e1781169e (patch)
treea61ee700139111432d262ab6e071f822f59d9c1d /arch/arm64/kernel/cpu-reset.S
parent9a25136a61179fe79689abf3c3fc67f89ce9ec13 (diff)
downloadlinux-dc374b477f9233296bf2da31854e486e1781169e.tar.xz
arm64: use mov_q instead of literal ldr
In practice, this requires only 2 instructions, or even only 1 for the idmap_pg_dir size (with 4 or 64 KiB pages). Only the MAIR values needed more than 2 instructions and it was already converted to mov_q by 95b3f74bec203804658e17f86fe20755bb8abcb9. Signed-off-by: Remi Denis-Courmont <remi.denis.courmont@huawei.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'arch/arm64/kernel/cpu-reset.S')
-rw-r--r--arch/arm64/kernel/cpu-reset.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpu-reset.S b/arch/arm64/kernel/cpu-reset.S
index 32c7bf858dd9..38087b4c0432 100644
--- a/arch/arm64/kernel/cpu-reset.S
+++ b/arch/arm64/kernel/cpu-reset.S
@@ -32,7 +32,7 @@
ENTRY(__cpu_soft_restart)
/* Clear sctlr_el1 flags. */
mrs x12, sctlr_el1
- ldr x13, =SCTLR_ELx_FLAGS
+ mov_q x13, SCTLR_ELx_FLAGS
bic x12, x12, x13
pre_disable_mmu_workaround
msr sctlr_el1, x12