arm64: head: populate kernel page tables with MMU and caches on
authorArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 15:06:47 +0000 (17:06 +0200)
committerWill Deacon <will@kernel.org>
Fri, 24 Jun 2022 16:18:10 +0000 (17:18 +0100)
commit6495b9ba62711b581680fbdd90d0bfc48cf5c91b
tree89cae06bff1cea9d7e9c21f582f99b44c6f294cf
parentc0be8f18a3bfcfd369eba21337e6c89a4bb8b0e8
arm64: head: populate kernel page tables with MMU and caches on

Now that we can access the entire kernel image via the ID map, we can
execute the page table population code with the MMU and caches enabled.
The only thing we need to ensure is that translations via TTBR1 remain
disabled while we are updating the page tables the second time around,
in case KASLR wants them to be randomized.

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