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)
commit172c34c9ff0144c3e1d96a9b54d6fecfe5d17c3c
tree8d836e7ef03c5a53f735d3d724793565aa6ffeb7
parent62c4a2e202b18e1d7176875b7e7af240f340596b
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