OSDN Git Service

ARM: p2v: factor out BE8 handling
authorArd Biesheuvel <ardb@kernel.org>
Thu, 17 Sep 2020 18:36:46 +0000 (21:36 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 15:59:43 +0000 (16:59 +0100)
commit7a94849e81b5c10e71f0a555300313c2789d9b0d
tree3f06086257dc6e5e4f270bb56aa9eaf02ba850f6
parent4b16421c3e955f440eb45546db6ce33d47f29c78
ARM: p2v: factor out BE8 handling

The big and little endian versions of the ARM p2v patching routine only
differ in the values of the constants, so factor those out into macros
so that we only have one version of the logic sequence to maintain.

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