ARM: decompressor: factor out routine to obtain the inflated image size
authorArd Biesheuvel <ardb@kernel.org>
Mon, 24 Feb 2020 10:15:27 +0000 (11:15 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 27 Feb 2020 10:15:10 +0000 (11:15 +0100)
commit184bf653a7a452c18b29136e6ef59972af288c7e
tree36e37e1484fd4340ca70b9eb9ecf6dafd6211dab
parente951a1f427f2312e17b4e0f485e60068ca1423bb
ARM: decompressor: factor out routine to obtain the inflated image size

Before adding another reference to the inflated image size, factor
out the slightly complicated way of loading the unaligned little-endian
constant from the end of the compressed data.

Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/boot/compressed/head.S