diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-01-11 13:22:32 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-01-24 14:51:07 +0300 |
commit | af7249b317e4d0b3d5a0ebbb7ee7a0f336ca7bca (patch) | |
tree | aedec4e0642fae38501d3460958486e41166221a /arch/arm64/mm | |
parent | 82e4958800c01daa7662362ee9543065bd14c852 (diff) | |
download | linux-af7249b317e4d0b3d5a0ebbb7ee7a0f336ca7bca.tar.xz |
arm64: kernel: move identity map out of .text mapping
Reorganize the ID map slightly so that only code that is executed with
the MMU off or via the 1:1 mapping remains. This allows us to move the
identity map out of the .text segment, as it will no longer need
executable permissions via the kernel mapping.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20230111102236.1430401-3-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/proc.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index 066fa60b93d2..91410f488090 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -110,7 +110,6 @@ SYM_FUNC_END(cpu_do_suspend) * * x0: Address of context pointer */ - .pushsection ".idmap.text", "awx" SYM_FUNC_START(cpu_do_resume) ldp x2, x3, [x0] ldp x4, x5, [x0, #16] @@ -166,7 +165,6 @@ alternative_else_nop_endif isb ret SYM_FUNC_END(cpu_do_resume) - .popsection #endif .pushsection ".idmap.text", "awx" |