efi: libstub: pass image handle to handle_kernel_image()
authorArd Biesheuvel <ardb@kernel.org>
Sat, 19 Mar 2022 17:35:53 +0000 (18:35 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 3 May 2022 13:31:28 +0000 (15:31 +0200)
commit416a9f84a77cf826fed1bf9a1908b2d066c17430
tree3ccd2b7499377aab52d198315b3d0d46c6068b7c
parent24b72bb12e84c75e297a5a81f24b921d7a011575
efi: libstub: pass image handle to handle_kernel_image()

In a future patch, arm64's implementation of handle_kernel_image() will
omit randomizing the placement of the kernel if the load address was
chosen randomly by the loader. In order to do this, it needs to locate a
protocol on the image handle, so pass it to handle_kernel_image().

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/arm32-stub.c
drivers/firmware/efi/libstub/arm64-stub.c
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/riscv-stub.c