]> xenbits.xensource.com Git - xen.git/commitdiff
x86: drop uefi_call_wrapper() and EFI_FUNCTION_WRAPPER
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Feb 2016 09:33:52 +0000 (10:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Feb 2016 09:33:52 +0000 (10:33 +0100)
Nothing in the codebase uses them, and clang falls into the #error case

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/x86_64/efibind.h

index 2db3568e46d9ec145536505d18903729d27b2563..b013db175d55c0517431c92b553da297f4e56b0f 100644 (file)
@@ -274,17 +274,6 @@ typedef uint64_t   UINTN;
 #endif
 #endif
 
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
-#define uefi_call_wrapper(func, va_num, ...)   func(__VA_ARGS__)
-#else
-/* for x86_64, EFI_FUNCTION_WRAPPER must be defined */
-#ifdef  EFI_FUNCTION_WRAPPER
-UINTN uefi_call_wrapper(void *func, unsigned long va_num, ...);
-#else
-#error "EFI_FUNCTION_WRAPPER must be defined for x86_64 architecture"
-#endif
-#endif
-
 #ifdef _MSC_EXTENSIONS
 #pragma warning ( disable : 4731 )  // Suppress warnings about modification of EBP
 #endif