arm64: Turn the MMU-on sequence into a macro
authorMarc Zyngier <maz@kernel.org>
Mon, 8 Feb 2021 09:57:12 +0000 (09:57 +0000)
committerWill Deacon <will@kernel.org>
Mon, 8 Feb 2021 12:51:26 +0000 (12:51 +0000)
commit8cc8a32415364e475c25277b507f06f67c47ca9a
tree2232aa234444c200b37fe8ea5522f19502a35e46
parentb161f92482426a7323884d57cbae683812909988
arm64: Turn the MMU-on sequence into a macro

Turning the MMU on is a popular sport in the arm64 kernel, and
we do it more than once, or even twice. As we are about to add
even more, let's turn it into a macro.

No expected functional change.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Brazdil <dbrazdil@google.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-4-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/assembler.h
arch/arm64/kernel/head.S
arch/arm64/mm/proc.S