mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
FROMGIT: arm64: Use INIT_SCTLR_EL1_MMU_OFF to disable the MMU on CPU restart
Instead of doing a RMW on SCTLR_EL1 to disable the MMU, use the
existing define that loads the right set of bits.
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
(cherry picked from commit 45879a5775
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next)
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 178098380
Test: atest VirtualizationHostTestCases on an EL2-enabled device
Change-Id: I246b40baab912669d05bf493d1e8b6b60338f693
This commit is contained in:
committed by
Quentin Perret
parent
a8a9fadaf8
commit
3ff7250562
@@ -30,10 +30,7 @@
|
|||||||
* flat identity mapping.
|
* flat identity mapping.
|
||||||
*/
|
*/
|
||||||
SYM_CODE_START(__cpu_soft_restart)
|
SYM_CODE_START(__cpu_soft_restart)
|
||||||
/* Clear sctlr_el1 flags. */
|
mov_q x12, INIT_SCTLR_EL1_MMU_OFF
|
||||||
mrs x12, sctlr_el1
|
|
||||||
mov_q x13, SCTLR_ELx_FLAGS
|
|
||||||
bic x12, x12, x13
|
|
||||||
pre_disable_mmu_workaround
|
pre_disable_mmu_workaround
|
||||||
/*
|
/*
|
||||||
* either disable EL1&0 translation regime or disable EL2&0 translation
|
* either disable EL1&0 translation regime or disable EL2&0 translation
|
||||||
|
|||||||
Reference in New Issue
Block a user