diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-06-24 18:06:41 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-24 19:18:10 +0300 |
commit | b013c1e1c659b0742f81cc4a95fe61faf6929ae5 (patch) | |
tree | 348c63400d3f9e30dba5e65bc23cd72683264de5 /arch/arm64/mm/proc.S | |
parent | 1682c45b920643cbde31d8a5b7ca7c2be92d6928 (diff) | |
download | linux-b013c1e1c659b0742f81cc4a95fe61faf6929ae5.tar.xz |
arm64: head: add helper function to remap regions in early page tables
The asm macros used to create the initial ID map and kernel mappings
don't support randomly remapping parts of the address space after it has
been populated. What we can do, however, given that all block or page
mappings are created at the final level, is take a subset of the mapped
range and update its attributes or output address. This will permit us
to make parts of these page tables read-only, or remap a part of it to
cover the device tree.
So add a helper that encapsulates this.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20220624150651.1358849-12-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm/proc.S')
0 files changed, 0 insertions, 0 deletions