]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: Always use EFIAPI instead of asmlinkage
authorAlexander Graf <agraf@suse.de>
Tue, 23 Jan 2018 23:18:08 +0000 (00:18 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 28 Jan 2018 20:37:13 +0000 (21:37 +0100)
commit1cd9a7f96e1a95aea5cfe6f5a911161b9f6bfbd3
treeec6517d5714b7e59f178ffaeebfa9e1eda7842fa
parent9c3eed395db4297c0e14b8c9aea903fc2b108206
efi_loader: Always use EFIAPI instead of asmlinkage

EFI calls are usually defined as asmlinkage. That means we pass all parameters
to functions via the stack x86_32.

On x86_64 however, we need to also stick to the MS ABI calling conventions,
which the EFIAPI define conveniently handles for us. Most EFI functions were
also marked with EFIAPI, except for the entry call.

So this patch adjusts all entry calls to use EFIAPI instead of the manual
asmlinkage attribute.

While at it, we also change the prototype of the entry point to return
efi_status_t instead of ulong, as this is the correct prototype definition.

Signed-off-by: Alexander Graf <agraf@suse.de>
---

v1 -> v2:

  - Use efi_status_t in all occurences
cmd/bootefi.c
lib/efi_loader/efi_boottime.c