arm64: head: factor out TTBR1 assignment into a macro
authorArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 15:06:46 +0000 (17:06 +0200)
committerWill Deacon <will@kernel.org>
Fri, 24 Jun 2022 16:18:10 +0000 (17:18 +0100)
commitc0be8f18a3bfcfd369eba21337e6c89a4bb8b0e8
tree68737da76c2b6a3b60ce405dae34b76f58be9533
parenta004393f45d9a55e55d76f252914bdddffdde204
arm64: head: factor out TTBR1 assignment into a macro

Create a macro load_ttbr1 to avoid having to repeat the same instruction
sequence 3 times in a subsequent patch. No functional change intended.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20220624150651.1358849-17-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/assembler.h
arch/arm64/kernel/head.S