]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4442088702181ec205797285c99b44a3aedbdfa1
tree82aab113bd4467d603dc317435832205ac1e7c74
parentf7e6d72e300a78d696923157cc5b593ed7bd3236
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