projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeb3557
)
arm64: Fix label placement in record_mmu_state()
author
Neeraj Upadhyay
<quic_neeraju@quicinc.com>
Tue, 25 Apr 2023 09:57:00 +0000
(15:27 +0530)
committer
Will Deacon
<will@kernel.org>
Wed, 26 Apr 2023 08:01:04 +0000
(09:01 +0100)
Fix label so that pre_disable_mmu_workaround() is called
before clearing sctlr_el1.M.
Fixes:
2ced0f30a426
("arm64: head: Switch endianness before populating the ID map")
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link:
https://lore.kernel.org/r/20230425095700.22005-1-quic_neeraju@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/head.S
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/head.S
b/arch/arm64/kernel/head.S
index
b989709
..
e92caeb
100644
(file)
--- a/
arch/arm64/kernel/head.S
+++ b/
arch/arm64/kernel/head.S
@@
-150,8
+150,8
@@
CPU_BE( tbz x19, #SCTLR_ELx_EE_SHIFT, 1f )
pre_disable_mmu_workaround
msr sctlr_el2, x19
b 3f
-
pre_disable_mmu_workaround
-
2:
msr sctlr_el1, x19
+
2:
pre_disable_mmu_workaround
+
msr sctlr_el1, x19
3: isb
mov x19, xzr
ret