Skip to content
Commit 9f922377 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

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: default avatarArd Biesheuvel <ardb@kernel.org>
parent e951a1f4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment