]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: head-common.S: use PC-relative insn sequence for idmap creation
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:16 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:39 +0000 (17:05 +0100)
commit80512427800f2cda509389d8d0514ed337abbb0e
tree8d836e7ef03c5a53f735d3d724793565aa6ffeb7
parent78994721484f95d63b8b010112ccd4a93233c57e
ARM: head-common.S: use PC-relative insn sequence for idmap creation

Replace the open coded PC relative offset calculations involving
__turn_mmu_on and __turn_mmu_on_end with a pair of adr_l invocations.
This removes some open coded arithmetic involving virtual addresses,
avoids literal pools on v7+, and slightly reduces the footprint of the
code.

Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/kernel/head.S