diff options
| author | Peter Jones <pjones@redhat.com> | 2017-09-28 14:11:51 -0400 |
|---|---|---|
| committer | Peter Jones <pmjones@gmail.com> | 2018-03-12 16:21:43 -0400 |
| commit | 9fdca5bbe11e384198372b86a6b81d5d9e79fa16 (patch) | |
| tree | fd270546473ce1869fd315d29dc984dcd793d928 /lib/shell.c | |
| parent | 1c2376338d57c900fbc1c2fe6d9c30cfe20e44be (diff) | |
| download | efi-boot-shim-9fdca5bbe11e384198372b86a6b81d5d9e79fa16.tar.gz efi-boot-shim-9fdca5bbe11e384198372b86a6b81d5d9e79fa16.zip | |
Don't use uefi_call_wrapper(), ever.
I'm pretty done with typing uefi_call_wrapper() and counting arguments
every time. Instead, just make the compiler error if we don't have
ms_abi. Also, make it so nothing can use uefi_call_wrapper() directly.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/shell.c')
| -rw-r--r-- | lib/shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/shell.c b/lib/shell.c index 79cc41d4..6d2312eb 100644 --- a/lib/shell.c +++ b/lib/shell.c @@ -20,8 +20,8 @@ argsplit(EFI_HANDLE image, int *argc, CHAR16*** ARGV) *argc = 0; - efi_status = uefi_call_wrapper(BS->HandleProtocol, 3, image, - &LoadedImageProtocol, (VOID **) &info); + efi_status = gBS->HandleProtocol(image, &LoadedImageProtocol, + (VOID **) &info); if (EFI_ERROR(efi_status)) { Print(L"Failed to get arguments\n"); return efi_status; |
