From 9fdca5bbe11e384198372b86a6b81d5d9e79fa16 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 28 Sep 2017 14:11:51 -0400 Subject: 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 --- lib/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/shell.c') 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; -- cgit v1.2.3