ARM: p2v: factor out shared loop processing
authorArd Biesheuvel <ardb@kernel.org>
Thu, 17 Sep 2020 18:29:36 +0000 (21:29 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 15:59:43 +0000 (16:59 +0100)
commit4b16421c3e955f440eb45546db6ce33d47f29c78
treec7d79e6e97944317851e0c1ab17e4f76ea3954b1
parenteae78e1a97201a81a851342ad9659b60f61a3951
ARM: p2v: factor out shared loop processing

The ARM and Thumb2 versions of the p2v patching loop have some overlap
at the end of the loop, so factor that out. As numeric labels are not
required to be unique, and may therefore be ambiguous, use named local
labels for the start and end of the loop instead.

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