]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93bef5ba7fd2107631fa1d4088a595ae191650dd
tree3ccd2b7499377aab52d198315b3d0d46c6068b7c
parent6b385c8a00f232d28736777853dfae206522419b
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