OSDN Git Service

ARM: decompressor: defer loading of the contents of the LC0 structure
authorArd Biesheuvel <ardb@kernel.org>
Mon, 13 Apr 2020 16:21:33 +0000 (18:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 16:23:22 +0000 (18:23 +0200)
commitf1f012b033e6651cd5c5b43d1722976cf6baf973
tree1542a400e4828981caac3c15f9a40ff279b5284a
parent161e04a5bae58a65d2b13642845f250888a845a1
ARM: decompressor: defer loading of the contents of the LC0 structure

The remaining contents of LC0 are only used after the point in the
decompressor startup code where we enter via 'wont_overwrite'. So
move the loading of the LC0 structure after it. This will allow us
to jump to wont_overwrite directly from the EFI stub, and execute
the decompressor in place at the offset it was loaded by the UEFI
firmware.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/boot/compressed/head.S