ARM: p2v: simplify __fixup_pv_table()
authorArd Biesheuvel <ardb@kernel.org>
Sun, 20 Sep 2020 17:19:32 +0000 (19:19 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 15:59:43 +0000 (16:59 +0100)
commit0e3db6c9d7f6fd0ee263325027e8d3fdac5a4c9e
tree943da8e12749904d3d7c15cd460bfa5c62dbc3ed
parent2730e8eaa4f2baccc03296e0c5ee109c0673fe5f
ARM: p2v: simplify __fixup_pv_table()

Declutter the code in __fixup_pv_table() by using the new adr_l/str_l
macros to take PC relative references to external symbols, and by
using the value of PHYS_OFFSET passed in r8 to calculate the p2v
offset.

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/kernel/phys2virt.S