]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8c988f3bb2d312e248b3e33b8694d1501d3b070
tree3f06086257dc6e5e4f270bb56aa9eaf02ba850f6
parent01aee00087dcc758fce8170e9ac941166fa4ba7d
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