]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ARM: head.S: use PC-relative insn sequence for secondary_data
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:23 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:39 +0000 (17:05 +0100)
commit91580f0dbf24c6d616091526a900213bc7aa48fe
treea9a8205f35c85cfebeba74be4498055b53356eae
parent172c34c9ff0144c3e1d96a9b54d6fecfe5d17c3c
ARM: head.S: use PC-relative insn sequence for secondary_data

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

Note that it also removes a stale comment about the contents of r6.

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