ARM: head-common.S: use PC-relative insn sequence for __proc_info
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:06 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:39 +0000 (17:05 +0100)
commit62c4a2e202b18e1d7176875b7e7af240f340596b
treedac2be9a2a0f8f5ca2e3c8e1061dadcf984f1f52
parent67e3f828bd4bf5e4eb4214dc4eb227d8f1c8a877
ARM: head-common.S: use PC-relative insn sequence for __proc_info

Replace the open coded PC relative offset calculations 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-common.S