ARM: p2v: use relative references in patch site arrays
authorArd Biesheuvel <ardb@kernel.org>
Sun, 20 Sep 2020 16:23:35 +0000 (18:23 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 15:59:43 +0000 (16:59 +0100)
commit2730e8eaa4f2baccc03296e0c5ee109c0673fe5f
tree239d266582859f5d4f54ae989ff27560e9d11779
parent0869f3b9da38889faef2ccafcf675c713d4a3aa8
ARM: p2v: use relative references in patch site arrays

Free up a register in the p2v patching code by switching to relative
references, which don't require keeping the phys-to-virt displacement
live in a register.

Acked-by: Nicolas Pitre <nico@fluxnic.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/include/asm/memory.h
arch/arm/kernel/phys2virt.S