efi/libstub/arm: Make efi_entry() an ordinary PE/COFF entrypoint
authorArd Biesheuvel <ardb@kernel.org>
Mon, 17 Feb 2020 11:44:37 +0000 (12:44 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 22 Feb 2020 22:37:37 +0000 (23:37 +0100)
commit9f9223778ef385e79dc67f5ee48ee4c1fb757f6b
tree82aab113bd4467d603dc317435832205ac1e7c74
parente951a1f427f2312e17b4e0f485e60068ca1423bb
efi/libstub/arm: Make efi_entry() an ordinary PE/COFF entrypoint

Expose efi_entry() as the PE/COFF entrypoint directly, instead of
jumping into a wrapper that fiddles with stack buffers and other
stuff that the compiler is much better at. The only reason this
code exists is to obtain a pointer to the base of the image, but
we can get the same value from the loaded_image protocol, which
we already need for other reasons anyway.

Update the return type as well, to make it consistent with what
is required for a PE/COFF executable entrypoint.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/boot/compressed/efi-header.S
arch/arm/boot/compressed/head.S
arch/arm64/kernel/efi-entry.S
arch/arm64/kernel/efi-header.S
arch/arm64/kernel/image-vars.h
drivers/firmware/efi/libstub/arm-stub.c
drivers/firmware/efi/libstub/arm32-stub.c
drivers/firmware/efi/libstub/arm64-stub.c