Browse Source

fix compilation on x86_64 without HAVE_USE_MS_ABI

make -C apps would fail on tcc.c because uefi_call_wrapper() doesn't
deal correctly with efi_call0-type invocation. Fixed by this patch.

Signed-off-by: David Decotigny <decot@googlers.com>
Nigel Croxon 11 years ago
parent
commit
401d5b7194
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gnu-efi-3.0/inc/x86_64/efibind.h

+ 1 - 1
gnu-efi-3.0/inc/x86_64/efibind.h

@@ -368,7 +368,7 @@ UINT64 efi_call10(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3,
 
 
 /* main wrapper (va_num ignored) */
 /* main wrapper (va_num ignored) */
 #define uefi_call_wrapper(func,va_num,...)                        \
 #define uefi_call_wrapper(func,va_num,...)                        \
-  __VA_ARG_NSUFFIX__(_cast64_efi_call, __VA_ARGS__) (func, __VA_ARGS__)
+  __VA_ARG_NSUFFIX__(_cast64_efi_call, __VA_ARGS__) (func , ##__VA_ARGS__)
 
 
 #endif
 #endif
 #define EFI_FUNCTION __attribute__((ms_abi))
 #define EFI_FUNCTION __attribute__((ms_abi))