ARM: head.S: use PC relative insn sequence to calculate PHYS_OFFSET
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:46 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:40 +0000 (17:05 +0100)
commit3bcf906b194cebb6817cbb2f07b69e12aa5d7f51
tree2908db68b7fad9927a9231ca311d80bbafb9fea7
parentd74d2b225018baa0e04e080ee9e80b21667ba3a2
ARM: head.S: use PC relative insn sequence to calculate PHYS_OFFSET

Replace the open coded arithmetic with a simple adr_l/sub pair. 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